From 2680b0bc8c9044b19b80a596f0005a1051b4ee54 Mon Sep 17 00:00:00 2001 From: adev Date: Sat, 4 Nov 2017 21:23:18 +0100 Subject: Fix installation command --- app/DoctrineMigrations/Version20170824113337.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/DoctrineMigrations/Version20170824113337.php') diff --git a/app/DoctrineMigrations/Version20170824113337.php b/app/DoctrineMigrations/Version20170824113337.php index 7393d683..e54a9bcf 100644 --- a/app/DoctrineMigrations/Version20170824113337.php +++ b/app/DoctrineMigrations/Version20170824113337.php @@ -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, + ] + ); } /** -- cgit v1.2.3