Skip to content

Commit

Permalink
fix(sql): allowing last_logged_out to be NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Mar 12, 2024
1 parent 682abcb commit b22cf2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qbx_core.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS `players` (
`metadata` text NOT NULL,
`inventory` longtext DEFAULT NULL,
`phone_number` VARCHAR(20) DEFAULT NULL,
`last_logged_out` timestamp 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`),
Expand Down Expand Up @@ -52,4 +52,4 @@ CREATE TABLE IF NOT EXISTS `player_groups` (
`grade` TINYINT(3) UNSIGNED NOT NULL,
PRIMARY KEY (`citizenid`, `type`, `group`),
CONSTRAINT `fk_citizenid` FOREIGN KEY (`citizenid`) REFERENCES `players` (`citizenid`) ON UPDATE CASCADE ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

0 comments on commit b22cf2a

Please sign in to comment.