mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Fixed SQLite not working
This commit is contained in:
1 parent
9ff3293621
commit
36e3756f9c
1 file changed
+3
-5
@@ -894,7 +894,7 @@ public class dataManager {
|
|||||||
");";
|
");";
|
||||||
} else {
|
} else {
|
||||||
createPlayerTable = "CREATE TABLE IF NOT EXISTS " + Main.settings.getPlayerDataTable() + " (" +
|
createPlayerTable = "CREATE TABLE IF NOT EXISTS " + Main.settings.getPlayerDataTable() + " (" +
|
||||||
"`player_id` integer PRIMARY KEY," +
|
"`player_id` integer NOT NULL," +
|
||||||
"`user_uuid` char(36) NOT NULL UNIQUE," +
|
"`user_uuid` char(36) NOT NULL UNIQUE," +
|
||||||
"`username` varchar(16) NOT NULL," +
|
"`username` varchar(16) NOT NULL," +
|
||||||
"`home_slots` integer NOT NULL," +
|
"`home_slots` integer NOT NULL," +
|
||||||
@@ -902,7 +902,7 @@ public class dataManager {
|
|||||||
"`is_teleporting` boolean NOT NULL," +
|
"`is_teleporting` boolean NOT NULL," +
|
||||||
"`dest_location_id` integer NULL," +
|
"`dest_location_id` integer NULL," +
|
||||||
"`last_location_id` integer NULL," +
|
"`last_location_id` integer NULL," +
|
||||||
|
"PRIMARY KEY (`player_id`)," +
|
||||||
"FOREIGN KEY (`dest_location_id`) REFERENCES " + Main.settings.getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION," +
|
"FOREIGN KEY (`dest_location_id`) REFERENCES " + Main.settings.getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION," +
|
||||||
"FOREIGN KEY (`last_location_id`) REFERENCES " + Main.settings.getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION" +
|
"FOREIGN KEY (`last_location_id`) REFERENCES " + Main.settings.getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION" +
|
||||||
");";
|
");";
|
||||||
@@ -914,9 +914,7 @@ public class dataManager {
|
|||||||
"`y` double NOT NULL," +
|
"`y` double NOT NULL," +
|
||||||
"`z` double NOT NULL," +
|
"`z` double NOT NULL," +
|
||||||
"`yaw` float NOT NULL," +
|
"`yaw` float NOT NULL," +
|
||||||
"`pitch` float NOT NULL," +
|
"`pitch` float NOT NULL" +
|
||||||
|
|
||||||
"PRIMARY KEY (`location_id`)" +
|
|
||||||
");";
|
");";
|
||||||
}
|
}
|
||||||
initializeDatabase();
|
initializeDatabase();
|
||||||
|
|||||||
Reference in new issue
Block a user