Added check in migration about uuid field

This commit is contained in:
Nicolas Lœuillet 2017-01-30 21:21:49 +01:00
parent 7a340375c3
commit a5cd696b22
No known key found for this signature in database
GPG Key ID: BDC1EFB5CA0145F2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
{
$entryTable = $schema->getTable($this->getTable('entry'));
$this->skipIf($entryTable->hasColumn('uid'), 'It seems that you already played this migration.');
$this->skipIf($entryTable->hasColumn('uid') || $entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
$entryTable->addColumn('uid', 'string', [
'notnull' => false,