<?php
// DO NOT DELETE FILE
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20201009143807 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create sessions table';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE `app_sessions` (`sess_id` VARBINARY(128) NOT NULL PRIMARY KEY, `sess_data` BLOB NOT NULL, `sess_lifetime` INTEGER UNSIGNED NOT NULL, `sess_time` INTEGER UNSIGNED NOT NULL) COLLATE utf8mb4_bin, ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE app_sessions');
}
}