generated from flo/template-backend
38 lines
869 B
PHP
38 lines
869 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Bee\Migrations\Bee;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Auto-generated Migration: Please modify to your needs!
|
|
*/
|
|
final class Version20230924113403 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return "Create Table 'registration'";
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$sql = "CREATE TABLE registration (
|
|
id binary(16) NOT NULL,
|
|
mail varchar(255) NOT NULL,
|
|
username varchar(255) NOT NULL,
|
|
created_at datetime NOT NULL,
|
|
PRIMARY KEY (id)
|
|
);";
|
|
|
|
$this->addSql($sql);
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql("DROP TABLE registration;");
|
|
}
|
|
}
|