Fix installation command

This commit is contained in:
adev
2017-11-04 21:23:18 +01:00
parent 2054740fdb
commit 2680b0bc8c
4 changed files with 43 additions and 31 deletions

View File

@ -41,7 +41,12 @@ class Version20170824113337 extends AbstractMigration implements ContainerAwareI
$entryTable = $schema->getTable($this->getTable('entry'));
$this->skipIf(!$entryTable->hasColumn('starred_at'), 'Unable to add starred_at colum');
$this->connection->executeQuery('UPDATE ' . $this->getTable('entry') . ' SET starred_at = updated_at WHERE is_starred = true');
$this->connection->executeQuery(
'UPDATE ' . $this->getTable('entry') . ' SET starred_at = updated_at WHERE is_starred = :is_starred',
[
'is_starred' => true,
]
);
}
/**