From 0001bc7a124f3f4ba35737e6a4d0045e07968674 Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Mon, 16 Jan 2017 17:34:06 +0100 Subject: [PATCH] Fixed wrongly named column --- database/new/wolfadmin_sqlite.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);