Soften cache DB migration against errors.

This commit is contained in:
Buster Neece 2023-08-20 03:03:52 -05:00
parent 1dc0cc32fd
commit 26b79e7509
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -16,11 +16,12 @@ final class Version20230729133644 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('DROP TABLE IF EXISTS cache_items');
$this->addSql('CREATE TABLE cache_items (item_id VARBINARY(255) NOT NULL, item_data MEDIUMBLOB NOT NULL, item_lifetime INT UNSIGNED DEFAULT NULL, item_time INT UNSIGNED NOT NULL, PRIMARY KEY(item_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_general_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE cache_items');
$this->addSql('DROP TABLE IF EXISTS cache_items');
}
}