Skip to content

Commit

Permalink
Merge pull request #495 from AOEpeople/bugfix/migration-diet
Browse files Browse the repository at this point in the history
added default value for diet during migration
  • Loading branch information
MalibusParty authored Jul 24, 2024
2 parents c209126 + d8162b5 commit 63adb29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions migrations/Version20240718094546.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE dish ADD diet VARCHAR(255) NOT NULL, CHANGE one_serving_size one_serving_size TINYINT(1) NOT NULL');
$this->addSql('update dish set diet="meat" where 1=1');
}

public function down(Schema $schema): void
Expand Down
6 changes: 0 additions & 6 deletions scripts/init.d/08_load-fixtures.sh

This file was deleted.

0 comments on commit 63adb29

Please sign in to comment.