Skip to content

Commit

Permalink
Cleanup migrations (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Sep 16, 2024
1 parent 79f3315 commit 22eca60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
10 changes: 0 additions & 10 deletions migrations/Version20201103191534.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,10 @@
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20201103191534 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}

public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SEQUENCE task_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE task (id INT NOT NULL, repository_full_name VARCHAR(255) NOT NULL, number INT NOT NULL, action INT NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, updated_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, verify_after TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, PRIMARY KEY(id))');
$this->addSql('COMMENT ON COLUMN task.created_at IS \'(DC2Type:datetime_immutable)\'');
Expand All @@ -29,7 +20,6 @@ public function up(Schema $schema) : void

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP SEQUENCE task_id_seq CASCADE');
$this->addSql('DROP TABLE task');
}
Expand Down
12 changes: 1 addition & 11 deletions migrations/Version20201112220914.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,10 @@
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20201112220914 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs

$this->addSql(<<<SQL
create table lock_keys
(
Expand All @@ -36,6 +26,6 @@ public function up(Schema $schema): void

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->throwIrreversibleMigrationException();
}
}

0 comments on commit 22eca60

Please sign in to comment.