diff --git a/CHANGELOG.md b/CHANGELOG.md index 22bbd53b3..34cff4fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -150,3 +150,8 @@ Version 1.5.23 ============== - [address] allow to add custom fields to addresses + +Version 1.5.24 +============== + +- [bugfix] add missing migration files diff --git a/Resources/migrations/Version20210308111926.php b/Resources/migrations/Version20210308111926.php new file mode 100644 index 000000000..368a3dec8 --- /dev/null +++ b/Resources/migrations/Version20210308111926.php @@ -0,0 +1,32 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER TABLE chill_main_address ADD customs JSONB DEFAULT \'[]\''); + + } + + public function down(Schema $schema) : void + { + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER TABLE chill_main_address DROP customs'); + } + + public function getDescription(): string + { + return "Add custom data in addresses"; + } +}