diff options
author | adev <adev2000@gmail.com> | 2017-11-04 21:23:18 +0100 |
---|---|---|
committer | adev <adev2000@gmail.com> | 2017-11-21 21:35:17 +0100 |
commit | 2680b0bc8c9044b19b80a596f0005a1051b4ee54 (patch) | |
tree | d5e4fc059c633b5a2324d58e311f3bbd982f9edc /app/DoctrineMigrations/Version20170824113337.php | |
parent | 2054740fdbae49a3900d84e0b4d2a604c5b099a5 (diff) | |
download | wallabag-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.php | 7 |
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 | /** |