Skip to content

Commit

Permalink
Merge pull request #236 from BitBagCommerce/bugfix/timestampable-migr…
Browse files Browse the repository at this point in the history
…ation

Fix migration Version20231015123538
  • Loading branch information
senghe authored Nov 14, 2023
2 parents 0a664fa + c55d769 commit f29982a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Migrations/Version20231015123538.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function getDescription(): string

public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE bitbag_wishlist ADD created_at DATETIME NOT NULL, ADD updated_at DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE bitbag_wishlist ADD created_at DATETIME DEFAULT NULL, ADD updated_at DATETIME DEFAULT NULL');
$this->addSql('UPDATE bitbag_wishlist SET created_at = NOW()');
$this->addSql('ALTER TABLE bitbag_wishlist CHANGE COLUMN created_at created_at DATETIME NOT NULL');
}

public function down(Schema $schema): void
Expand Down

0 comments on commit f29982a

Please sign in to comment.