diff --git a/modules/databaseGlobals.js b/modules/databaseGlobals.js index ca9fd84..66be05c 100644 --- a/modules/databaseGlobals.js +++ b/modules/databaseGlobals.js @@ -230,7 +230,7 @@ async function setupDatabase() { isSelected TINYINT(1) DEFAULT 0, createdAt DATETIME DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (playerUuid) REFERENCES players(uuid) ON DELETE CASCADE, - FOREIGN KEY (assetHash) REFERENCES textures(hash) + FOREIGN KEY (assetHash) REFERENCES textures(hash) ON DELETE CASCADE ) `) logger.log(`${"playersCapes".bold} table ready`, ["MariaDB", "yellow"])