From c07144a5b51dd394fdce4cb47ee20996a35bbdc1 Mon Sep 17 00:00:00 2001 From: soyuka Date: Tue, 29 Oct 2024 09:47:35 +0100 Subject: [PATCH] remove useless migration --- api/migrations/Version20210930074739.php | 4 +-- api/migrations/Version20240305143335.php | 34 ------------------------ 2 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 api/migrations/Version20240305143335.php diff --git a/api/migrations/Version20210930074739.php b/api/migrations/Version20210930074739.php index 7c350c21..684e09df 100644 --- a/api/migrations/Version20210930074739.php +++ b/api/migrations/Version20210930074739.php @@ -20,15 +20,15 @@ public function getDescription(): string public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SEQUENCE greeting_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); $this->addSql('CREATE TABLE greeting (id INT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE SEQUENCE greeting_seq INCREMENT BY 100 MINVALUE 1 START 1'); } 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('DROP SEQUENCE greeting_id_seq CASCADE'); + $this->addSql('DROP SEQUENCE greeting_seq CASCADE'); $this->addSql('DROP TABLE greeting'); } } diff --git a/api/migrations/Version20240305143335.php b/api/migrations/Version20240305143335.php deleted file mode 100644 index af9786b7..00000000 --- a/api/migrations/Version20240305143335.php +++ /dev/null @@ -1,34 +0,0 @@ -addSql('DROP SEQUENCE greeting_id_seq CASCADE'); - $this->addSql('CREATE SEQUENCE greeting_seq INCREMENT BY 100 MINVALUE 1 START 1'); - } - - 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('DROP SEQUENCE greeting_seq CASCADE'); - $this->addSql('CREATE SEQUENCE greeting_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); - } -}