Skip to content

Commit

Permalink
Again I forgot if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjasoturi committed Feb 12, 2024
1 parent 28fb58c commit 2405606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/upgrade/5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ ALTER TABLE `photo_cache` ADD COLUMN IF NOT EXISTS `end_time` DATETIME DEFAULT N
ALTER TABLE `photo_cache` ADD COLUMN IF NOT EXISTS `start_time` DATETIME DEFAULT NULL AFTER `end_time`;

ALTER TABLE `cleanup` ADD COLUMN IF NOT EXISTS `media_unique_id` varchar(45) DEFAULT NULL AFTER `date_of_posting`;
ALTER TABLE `cleanup` ADD COLUMN `thread_id` INT UNSIGNED NULL AFTER `message_id`;
ALTER TABLE `cleanup` ADD COLUMN IF NOT EXISTS `thread_id` INT UNSIGNED NULL AFTER `message_id`;
CREATE UNIQUE INDEX IF NOT EXISTS `unique_chat_msg` ON `cleanup` (chat_id, message_id);

ALTER TABLE `overview` ADD COLUMN `thread_id` INT UNSIGNED NULL AFTER `message_id`;
ALTER TABLE `overview` ADD COLUMN IF NOT EXISTS `thread_id` INT UNSIGNED NULL AFTER `message_id`;

ALTER TABLE `trainerinfo` ADD COLUMN `thread_id` INT UNSIGNED NULL AFTER `message_id`;
ALTER TABLE `trainerinfo` ADD COLUMN IF NOT EXISTS `thread_id` INT UNSIGNED NULL AFTER `message_id`;

ALTER TABLE `raids` CHANGE COLUMN IF EXISTS `level` `level` TINYINT UNSIGNED DEFAULT NULL;
ALTER TABLE `raid_bosses` CHANGE COLUMN IF EXISTS `raid_level` `raid_level` TINYINT UNSIGNED DEFAULT NULL;
Expand Down

0 comments on commit 2405606

Please sign in to comment.