From b256c3176ee6317616bb73f1c25a104c198d7555 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 6 Sep 2023 16:05:21 +0200 Subject: [PATCH] FIX [migration][center] set default value in center migration to add isActive --- src/Bundle/ChillMainBundle/migrations/Version20230906134410.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/migrations/Version20230906134410.php b/src/Bundle/ChillMainBundle/migrations/Version20230906134410.php index b03af5a5f..ac18c9c29 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20230906134410.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20230906134410.php @@ -26,7 +26,7 @@ final class Version20230906134410 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('ALTER TABLE centers ADD isActive BOOLEAN NOT NULL'); + $this->addSql('ALTER TABLE centers ADD isActive BOOLEAN DEFAULT true NOT NULL'); } public function down(Schema $schema): void