diff --git a/database/new/wolfadmin_sqlite.sql b/database/new/wolfadmin_sqlite.sql index 1ce8620..11d1bd1 100644 --- a/database/new/wolfadmin_sqlite.sql +++ b/database/new/wolfadmin_sqlite.sql @@ -14,8 +14,8 @@ CREATE TABLE IF NOT EXISTS `player` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `guid` TEXT NOT NULL UNIQUE, `ip` TEXT NOT NULL, - `level` INTEGER NOT NULL, - CONSTRAINT `player_level` FOREIGN KEY (`level`) REFERENCES `level` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION + `level_id` INTEGER NOT NULL, + CONSTRAINT `player_level` FOREIGN KEY (`level_id`) REFERENCES `level` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS `alias` ( @@ -197,4 +197,4 @@ INSERT INTO `level_role`(`level_id`, `role`) VALUES (5, 'incognito'); INSERT INTO `level_role`(`level_id`, `role`) VALUES (5, 'immune'); INSERT INTO `player` (`id`, `guid`, `ip`, `level`) VALUES (1, 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', '127.0.0.1', 5); -INSERT INTO `alias` (`id`, `player_id`, `alias`, `cleanalias`, `lastused`, `used`) VALUES (1, 1, 'console', 'console', 0, 0); \ No newline at end of file +INSERT INTO `alias` (`id`, `player_id`, `alias`, `cleanalias`, `lastused`, `used`) VALUES (1, 1, 'console', 'console', 0, 0);