diff --git a/qbx_core.sql b/qbx_core.sql index 8c3335510..e2105c1eb 100644 --- a/qbx_core.sql +++ b/qbx_core.sql @@ -12,7 +12,6 @@ CREATE TABLE IF NOT EXISTS `players` ( `metadata` text NOT NULL, `inventory` longtext DEFAULT NULL, `phone_number` VARCHAR(20) DEFAULT NULL, - `last_logged_out` timestamp NULL DEFAULT NULL, `last_updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`citizenid`), KEY `id` (`id`), @@ -20,6 +19,10 @@ CREATE TABLE IF NOT EXISTS `players` ( KEY `license` (`license`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +ALTER TABLE `players` +ADD `last_logged_out` timestamp NULL DEFAULT NULL AFTER `last_updated`, +ALTER COLUMN `citizenid` varchar(50) NOT NULL COLLATE utf8mb4_unicode_ci; + CREATE TABLE IF NOT EXISTS `bans` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL,