Skip to content

Commit

Permalink
fix(mysql): fix broken syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
arnevdaele authored Nov 20, 2024
1 parent 74ac69f commit 8a26c79
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 @@ -20,11 +20,11 @@ CREATE TABLE IF NOT EXISTS `players` (
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

ALTER TABLE `players`
ADD IF NOT EXISTS `last_logged_out` timestamp NULL DEFAULT NULL AFTER `last_updated`,
ADD COLUMN IF NOT EXISTS `last_logged_out` timestamp NULL DEFAULT NULL AFTER `last_updated`,
MODIFY COLUMN `name` varchar(255) NOT NULL COLLATE utf8mb4_unicode_ci;

ALTER TABLE `players`
ADD IF NOT EXISTS `userId` INT UNSIGNED DEFAULT NULL AFTER `id`;
ADD COLUMN IF NOT EXISTS `userId` INT UNSIGNED DEFAULT NULL AFTER `id`;

CREATE TABLE IF NOT EXISTS `bans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
Expand Down

0 comments on commit 8a26c79

Please sign in to comment.