Browse Source

Edit a migration

imwald
Nuša Pukšič 1 month ago
parent
commit
a675c775fb
  1. 4
      migrations/Version20251130103218.php

4
migrations/Version20251130103218.php

@ -20,14 +20,14 @@ final class Version20251130103218 extends AbstractMigration
public function up(Schema $schema): void public function up(Schema $schema): void
{ {
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE article ALTER id ADD GENERATED BY DEFAULT AS IDENTITY'); // $this->addSql('ALTER TABLE article ALTER id ADD GENERATED BY DEFAULT AS IDENTITY');
$this->addSql('DROP INDEX idx_event_kind'); $this->addSql('DROP INDEX idx_event_kind');
} }
public function down(Schema $schema): void public function down(Schema $schema): void
{ {
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE article ALTER id DROP IDENTITY'); // $this->addSql('ALTER TABLE article ALTER id DROP IDENTITY');
$this->addSql('CREATE INDEX idx_event_kind ON event (kind)'); $this->addSql('CREATE INDEX idx_event_kind ON event (kind)');
} }
} }

Loading…
Cancel
Save