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.
30 lines
641 B
30 lines
641 B
7 years ago
|
<?php
|
||
|
namespace Application\Migrations;
|
||
|
|
||
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
||
|
use Doctrine\DBAL\Schema\Schema;
|
||
|
|
||
|
class VersionTos20180514074049 extends AbstractMigration
|
||
|
{
|
||
|
|
||
|
public function up(Schema $schema)
|
||
|
{
|
||
|
$tos = $schema->createTable('vierbergenlars_tos');
|
||
|
|
||
|
$tos->addColumn('user_id', 'integer');
|
||
|
|
||
|
$tos->addColumn('accepted_version', 'integer')->setNotnull(true);
|
||
|
|
||
|
$tos->addForeignKeyConstraint('auth_users', [
|
||
|
'user_id'
|
||
|
], [
|
||
|
'id'
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function down(Schema $schema)
|
||
|
{
|
||
|
$schema->dropTable('vierbergenlars_tos');
|
||
|
}
|
||
|
}
|