Skip to content

Commit

Permalink
chore: Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hellopablo committed Aug 27, 2024
1 parent 9001358 commit a15a522
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Database/Migration/Migration14.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class Migration14 implements Interfaces\Database\Migration
public function execute(): void
{
$this->query('ALTER TABLE `{{NAILS_DB_PREFIX}}admin_changelog` DROP `article`;');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `operation` = "CREATE" WHERE `operation` = "created";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `operation` = "EDIT" WHERE `operation` = "updated";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `operation` = "DELETE" WHERE `operation` = "deleted";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `operation` = "RESTORE" WHERE `operation` = "restore";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `verb` = "CREATE" WHERE `verb` = "created";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `verb` = "DELETE" WHERE `verb` = "deleted";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `verb` = "RESTORE" WHERE `verb` = "restore";');
$this->query('UPDATE `{{NAILS_DB_PREFIX}}admin_changelog` SET `verb` = "EDIT" WHERE `verb` NOT IN ("CREATE", "DELETE", "RESTORE");');
$this->query('ALTER TABLE `{{NAILS_DB_PREFIX}}admin_changelog` CHANGE `verb` `operation` ENUM(\'CREATE\',\'EDIT\',\'DELETE\',\'RESTORE\') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;');
}
}

0 comments on commit a15a522

Please sign in to comment.