Skip to content

Commit

Permalink
Update Version20231015123538.php
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero authored Nov 13, 2023
1 parent 51c4c60 commit c55d769
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 c55d769

Please sign in to comment.