Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rename migration #113

Merged
merged 1 commit into from Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions migrations/Version20210112170750.php
Expand Up @@ -21,10 +21,14 @@ final class Version20210112170750 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE excluded_tag RENAME TO conference_filter');
$this->addSql('DROP SEQUENCE excluded_tag_id_seq CASCADE');
$this->addSql('CREATE SEQUENCE conference_filter_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
}

public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE conference_filter RENAME TO excluded_tag');
$this->addSql('DROP SEQUENCE conference_filter_id_seq CASCADE');
$this->addSql('CREATE SEQUENCE excluded_tag_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
}
}