template-backend/data/migrations/business/Version20230922085011.php
2024-08-24 20:06:58 +00:00

33 lines
700 B
PHP

<?php
declare(strict_types=1);
namespace Template\Migrations\Template;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230922085011 extends AbstractMigration
{
public function getDescription(): string
{
return "Create Table 'role'";
}
public function up(Schema $schema): void
{
$sql = "CREATE TABLE role (
id binary(16) NOT NULL,
identifier varchar(255) UNIQUE NOT NULL,
PRIMARY KEY (id)
);";
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE role;");
}
}