mirror of https://github.com/wallabag/wallabag.git
Code review
This commit is contained in:
parent
d79b3adbed
commit
65a8c6e135
|
@ -37,9 +37,9 @@ class Version20161024212538 extends AbstractMigration implements ContainerAwareI
|
|||
|
||||
$clientsTable->addForeignKeyConstraint(
|
||||
$this->getTable('user'),
|
||||
array('user_id'),
|
||||
array('id'),
|
||||
array('onDelete' => 'CASCADE')
|
||||
['user_id'],
|
||||
['id'],
|
||||
['onDelete' => 'CASCADE']
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,12 +42,9 @@ class Version20161122203647 extends AbstractMigration implements ContainerAwareI
|
|||
{
|
||||
$userTable = $schema->getTable($this->getTable('user'));
|
||||
|
||||
$this->skipIf(false === $userTable->hasColumn('expired'), 'It seems that you already played this migration.');
|
||||
$this->skipIf(false === $userTable->hasColumn('expired') || false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');
|
||||
|
||||
$userTable->dropColumn('expired');
|
||||
|
||||
$this->skipIf(false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');
|
||||
|
||||
$userTable->dropColumn('credentials_expired');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue