aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20170824113337.php
diff options
context:
space:
mode:
authoradev <adev2000@gmail.com>2017-11-04 21:23:18 +0100
committeradev <adev2000@gmail.com>2017-11-21 21:35:17 +0100
commit2680b0bc8c9044b19b80a596f0005a1051b4ee54 (patch)
treed5e4fc059c633b5a2324d58e311f3bbd982f9edc /app/DoctrineMigrations/Version20170824113337.php
parent2054740fdbae49a3900d84e0b4d2a604c5b099a5 (diff)
downloadwallabag-2680b0bc8c9044b19b80a596f0005a1051b4ee54.tar.gz
wallabag-2680b0bc8c9044b19b80a596f0005a1051b4ee54.tar.zst
wallabag-2680b0bc8c9044b19b80a596f0005a1051b4ee54.zip
Fix installation command
Diffstat (limited to 'app/DoctrineMigrations/Version20170824113337.php')
-rw-r--r--app/DoctrineMigrations/Version20170824113337.php7
1 files changed, 6 insertions, 1 deletions
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
41 $entryTable = $schema->getTable($this->getTable('entry')); 41 $entryTable = $schema->getTable($this->getTable('entry'));
42 $this->skipIf(!$entryTable->hasColumn('starred_at'), 'Unable to add starred_at colum'); 42 $this->skipIf(!$entryTable->hasColumn('starred_at'), 'Unable to add starred_at colum');
43 43
44 $this->connection->executeQuery('UPDATE ' . $this->getTable('entry') . ' SET starred_at = updated_at WHERE is_starred = true'); 44 $this->connection->executeQuery(
45 'UPDATE ' . $this->getTable('entry') . ' SET starred_at = updated_at WHERE is_starred = :is_starred',
46 [
47 'is_starred' => true,
48 ]
49 );
45 } 50 }
46 51
47 /** 52 /**