<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221021100710 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('ALTER TABLE participant CHANGE status status INT DEFAULT 1 NOT NULL');
$this->addSql(
"INSERT INTO package (`id`,`name`, description, status, secret_code) VALUES (1, 'Standard', 'Standard', 1, 'Standard');"
);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE participant CHANGE status status INT NOT NULL');
$this->addSql('DELETE FROM package where id = 1');
}
}