From ddc48db06f35b4c86d30ead615b3f3e774eefa79 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 1 Nov 2024 10:40:00 +0100 Subject: [PATCH] Clean taskbundle migration --- .../migrations/Version20241101093514.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Bundle/ChillTaskBundle/migrations/Version20241101093514.php diff --git a/src/Bundle/ChillTaskBundle/migrations/Version20241101093514.php b/src/Bundle/ChillTaskBundle/migrations/Version20241101093514.php new file mode 100644 index 000000000..71ec995e7 --- /dev/null +++ b/src/Bundle/ChillTaskBundle/migrations/Version20241101093514.php @@ -0,0 +1,29 @@ +addSql('ALTER TABLE chill_task.recurring_task ALTER current_states SET DEFAULT \'[]\''); + $this->addSql('ALTER TABLE chill_task.single_task ALTER current_states SET DEFAULT \'[]\''); + + } + + public function down(Schema $schema): void + { + $this->addSql('ALTER TABLE chill_task.single_task ALTER current_states DROP DEFAULT'); + $this->addSql('ALTER TABLE chill_task.recurring_task ALTER current_states DROP DEFAULT'); + } +}