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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
tos/Resources/migrations/VersionTos20180514074049.php

29 lines
641 B

<?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');
}
}