You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
873 B
35 lines
873 B
7 years ago
|
<?php
|
||
|
namespace Application\Migrations;
|
||
|
|
||
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
||
|
use Doctrine\DBAL\Schema\Schema;
|
||
|
|
||
7 years ago
|
class VersionExpireEmailValidation20180510212258 extends AbstractMigration
|
||
7 years ago
|
{
|
||
|
|
||
|
public function up(Schema $schema)
|
||
|
{
|
||
7 years ago
|
$expires = $schema->createTable('vierbergenlars_expire_email_validation');
|
||
7 years ago
|
|
||
|
$expires->addColumn('user_id', 'integer');
|
||
|
|
||
|
$expires->addColumn('last_login', 'datetime')
|
||
|
->setNotnull(false)
|
||
|
->setDefault(null);
|
||
|
$expires->addColumn('expired_at', 'datetime')
|
||
|
->setNotnull(false)
|
||
|
->setDefault(null);
|
||
|
|
||
|
$expires->addForeignKeyConstraint('auth_users', [
|
||
|
'user_id'
|
||
|
], [
|
||
|
'id'
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function down(Schema $schema)
|
||
|
{
|
||
7 years ago
|
$schema->dropTable('vierbergenlars_expire_email_validation');
|
||
7 years ago
|
}
|
||
|
}
|