migrations/Version20230621183533.php line 1
<?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 Version20230621183533 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$sql = <<<SQL
CREATE TABLE template_extension
(
id INT AUTO_INCREMENT NOT NULL,
template_id INT NOT NULL,
`order` INT DEFAULT 0,
`type` VARCHAR(20) NOT NULL,
initialized INT DEFAULT 0,
parameter VARCHAR(255),
`value` VARCHAR(255) NOT NULL,
PRIMARY KEY (id),
INDEX (type),
FOREIGN KEY (template_id) REFERENCES template (id)
) DEFAULT CHARACTER SET utf8mb4
COLLATE `utf8mb4_unicode_ci`
ENGINE = InnoDB
SQL;
// this up() migration is auto-generated, please modify it to your needs
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE template_source');
}
}