src/Migrations/Version20210422120808.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 Version20210422120808 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 content_textblock (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, slug VARCHAR(100) NOT NULL, caption VARCHAR(255) NOT NULL, content LONGTEXT DEFAULT NULL, deleted TINYINT(1) DEFAULT \'0\' NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, active TINYINT(1) DEFAULT \'1\' NOT NULL, weight INT DEFAULT 10 NOT NULL, owner_uuid VARCHAR(36) DEFAULT NULL, owner_active TINYINT(1) DEFAULT \'1\' NOT NULL, owner_deleted TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX IDX_E9A7D10FB03A8386 (created_by_id), INDEX IDX_E9A7D10F896DBBDE (updated_by_id), INDEX idx_url (slug), INDEX idx_active (active), INDEX idx_owner (owner_uuid, deleted, active), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE content_textblock ADD CONSTRAINT FK_E9A7D10FB03A8386 FOREIGN KEY (created_by_id) REFERENCES users (id)');$this->addSql('ALTER TABLE content_textblock ADD CONSTRAINT FK_E9A7D10F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES users (id)');$this->addSql('ALTER TABLE olymp_online_participant ADD accepted TINYINT(1) NOT NULL');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE content_textblock');$this->addSql('ALTER TABLE olymp_online_participant DROP accepted');}}