added session table
This commit is contained in:
parent
2d7844cce5
commit
0f0c8e88c7
37
migrations/Version20210610182614.php
Normal file
37
migrations/Version20210610182614.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?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 Version20210610182614 extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
// this up() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('CREATE TABLE `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,
|
||||
INDEX `sessions_sess_lifetime_idx` (`sess_lifetime`)
|
||||
) COLLATE utf8mb4_bin, ENGINE = InnoDB;');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user