src/Migrations/Version20210611142953.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20210611142953 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 TABLE olymp_online_participant_result (participant_id INT NOT NULL, score DOUBLE PRECISION NOT NULL, disqualified TINYINT(1) DEFAULT \'0\' NOT NULL, disqualified_reason VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, PRIMARY KEY(participant_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE olymp_online_participant_result ADD CONSTRAINT FK_C048A3FF9D1C3019 FOREIGN KEY (participant_id) REFERENCES olymp_online_participant (id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE olymp_online_participant_result');}}