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.
34 lines
873 B
34 lines
873 B
<?php
|
|
namespace Application\Migrations;
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
class VersionExpireEmailValidation20180510212258 extends AbstractMigration
|
|
{
|
|
|
|
public function up(Schema $schema)
|
|
{
|
|
$expires = $schema->createTable('vierbergenlars_expire_email_validation');
|
|
|
|
$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)
|
|
{
|
|
$schema->dropTable('vierbergenlars_expire_email_validation');
|
|
}
|
|
}
|
|
|