From 972fa577716c23fc7cf236cdcd1745dc3549cc8f Mon Sep 17 00:00:00 2001 From: Marko Jovanovic Date: Fri, 16 Jan 2026 14:44:28 +0100 Subject: [PATCH] Doctrine migration fix --- .../{Version20260116104840.php => Version20260116134351.php} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename migrations/{Version20260116104840.php => Version20260116134351.php} (79%) diff --git a/migrations/Version20260116104840.php b/migrations/Version20260116134351.php similarity index 79% rename from migrations/Version20260116104840.php rename to migrations/Version20260116134351.php index b68cbfc..0890f4f 100644 --- a/migrations/Version20260116104840.php +++ b/migrations/Version20260116134351.php @@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20260116104840 extends AbstractMigration +final class Version20260116134351 extends AbstractMigration { public function getDescription(): string { @@ -20,6 +20,7 @@ final class Version20260116104840 extends AbstractMigration public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE contacts ADD due_quartal INT DEFAULT NULL'); $this->addSql('CREATE UNIQUE INDEX unique_quartal ON contacts (phone_number, due_quartal) WHERE due_quartal IS NOT NULL'); } @@ -28,5 +29,6 @@ final class Version20260116104840 extends AbstractMigration // this down() migration is auto-generated, please modify it to your needs $this->addSql('CREATE SCHEMA public'); $this->addSql('DROP INDEX unique_quartal'); + $this->addSql('ALTER TABLE contacts DROP due_quartal'); } }