Skip to content

Commit

Permalink
Add rememberMe token table (#7358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Jun 17, 2022
1 parent 18fcd69 commit 8ffd3a3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions migrations/Version20220616154158.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20220616154158 extends AbstractMigration
{
public function up(Schema $schema): void
{
if (count($this->sm->listTableColumns('rememberme_token'))) {
return;
}

$this->addSql('CREATE TABLE `rememberme_token` (
`series` char(88) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`value` char(88) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastUsed` datetime NOT NULL,
`class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`username` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`series`),
UNIQUE KEY `series` (`series`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci');
}

public function down(Schema $schema): void
{
}
}

0 comments on commit 8ffd3a3

Please sign in to comment.