From 56ad9c1de69630e4555dc70c1fe562e41eb1531f Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 4 Jul 2019 19:51:42 +0200 Subject: [PATCH] Added missing migration for emoticons table. --- ...19_07_04_175010_create_emoticons_table.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/2019_07_04_175010_create_emoticons_table.php diff --git a/database/2019_07_04_175010_create_emoticons_table.php b/database/2019_07_04_175010_create_emoticons_table.php new file mode 100644 index 00000000..8a8b09b0 --- /dev/null +++ b/database/2019_07_04_175010_create_emoticons_table.php @@ -0,0 +1,29 @@ +exec(" + CREATE TABLE `msz_emoticons` ( + `emote_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `emote_order` MEDIUMINT(9) NOT NULL DEFAULT 0, + `emote_hierarchy` INT(11) NOT NULL DEFAULT 0, + `emote_string` VARCHAR(50) NOT NULL COLLATE 'ascii_general_nopad_ci', + `emote_url` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_bin', + PRIMARY KEY (`emote_id`), + UNIQUE INDEX `emotes_string` (`emote_string`), + INDEX `emotes_order` (`emote_order`), + INDEX `emotes_hierarchy` (`emote_hierarchy`), + INDEX `emotes_url` (`emote_url`) + ) COLLATE='utf8mb4_bin' ENGINE=InnoDB; + "); +} + +function migrate_down(PDO $conn): void +{ + $conn->exec(" + DROP TABLE `msz_emoticons`; + "); +}