mytube-backend/data/migrations/myTube/Version20240223130835.php
2024-08-04 14:23:33 +00:00

39 lines
919 B
PHP

<?php
declare(strict_types=1);
namespace MyTube\Migrations\MyTube;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240223130835 extends AbstractMigration
{
public function getDescription(): string
{
return "Create Table 'tag_alias'";
}
public function up(Schema $schema): void
{
$sql = "CREATE TABLE tag_alias (
id binary(16) NOT NULL,
tag_id binary(16) NOT NULL,
description varchar(255) NOT NULL,
created_at datetime NOT NULL,
updated_at datetime NOT NULL,
PRIMARY KEY (id)
);";
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE tag_alias;");
}
}