From 1453fdcd18978f0ccc446bb242c9531d2c2285de Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 9 Mar 2022 15:48:48 +0100 Subject: [PATCH] default value set in migration --- src/Bundle/ChillMainBundle/migrations/Version20220308104030.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/migrations/Version20220308104030.php b/src/Bundle/ChillMainBundle/migrations/Version20220308104030.php index f70d6e5f6..0c48b3568 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20220308104030.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20220308104030.php @@ -19,7 +19,7 @@ final class Version20220308104030 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('ALTER TABLE users ADD roles JSON NOT NULL'); + $this->addSql('ALTER TABLE users ADD roles JSONB DEFAULT \'["ROLE_USER"]\' NOT NULL'); } public function down(Schema $schema): void