<?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 Version20210728125811 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->addSql('CREATE TABLE task_files (id INT AUTO_INCREMENT NOT NULL, task_id INT NOT NULL, file_name VARCHAR(255) NOT NULL, INDEX IDX_C1915B798DB60186 (task_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE task_files ADD CONSTRAINT FK_C1915B798DB60186 FOREIGN KEY (task_id) REFERENCES task (id)');
}
public function down(Schema $schema) : void
{
$this->addSql('DROP TABLE task_files');
}
}