diff --git a/.gitignore b/.gitignore index 7e9e681..71997bc 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ /config/jwt/private.key /config/jwt/public.key ###addSql('ALTER TABLE organizations ALTER name SET NOT NULL'); + $this->addSql('DROP INDEX idx_75ea56e016ba31db'); + $this->addSql('DROP INDEX idx_75ea56e0e3bd61ce'); + $this->addSql('DROP INDEX idx_75ea56e0fb7336f0'); + $this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0E3BD61CE16BA31DBBF396750 ON messenger_messages (queue_name, available_at, delivered_at, id)'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE SCHEMA public'); + $this->addSql('ALTER TABLE organizations ALTER name DROP NOT NULL'); + $this->addSql('DROP INDEX IDX_75EA56E0FB7336F0E3BD61CE16BA31DBBF396750'); + $this->addSql('CREATE INDEX idx_75ea56e016ba31db ON messenger_messages (delivered_at)'); + $this->addSql('CREATE INDEX idx_75ea56e0e3bd61ce ON messenger_messages (available_at)'); + $this->addSql('CREATE INDEX idx_75ea56e0fb7336f0 ON messenger_messages (queue_name)'); + } +} diff --git a/src/Entity/Organizations.php b/src/Entity/Organizations.php index 883cb74..587c833 100644 --- a/src/Entity/Organizations.php +++ b/src/Entity/Organizations.php @@ -45,7 +45,7 @@ class Organizations #[ORM\ManyToMany(targetEntity: Apps::class, mappedBy: 'organization')] private Collection $apps; - #[ORM\Column(length: 255, nullable: true)] + #[ORM\Column(length: 255)] private ?string $name = null; /** diff --git a/symfony.lock b/symfony.lock index 0644b1a..ef08a57 100644 --- a/symfony.lock +++ b/symfony.lock @@ -280,6 +280,12 @@ "tests/bootstrap.php" ] }, + "symfony/property-info": { + "version": "7.4", + "recipe": { + "version": "7.3" + } + }, "symfony/routing": { "version": "7.2", "recipe": {