From a5fb026354afaf9158cb6c3349fe1c81613fbd1a Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 8 Jan 2017 18:33:48 +0300 Subject: [PATCH] SubscriptionEvent forgotten indexes renaming migration. --- .../Version20170108152129.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/DoctrineMigrations/Version20170108152129.php diff --git a/app/DoctrineMigrations/Version20170108152129.php b/app/DoctrineMigrations/Version20170108152129.php new file mode 100644 index 0000000..39fbe00 --- /dev/null +++ b/app/DoctrineMigrations/Version20170108152129.php @@ -0,0 +1,33 @@ +abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER INDEX subscriptions.idx_22da64ddf675f31b RENAME TO author_idx'); + $this->addSql('ALTER INDEX subscriptions.idx_22da64dd7808b1ad RENAME TO subscriber_idx'); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER INDEX subscriptions.subscriber_idx RENAME TO idx_22da64dd7808b1ad'); + $this->addSql('ALTER INDEX subscriptions.author_idx RENAME TO idx_22da64ddf675f31b'); + } +}