aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20170824113337.php
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-11-25 12:28:41 +0100
committerGitHub <noreply@github.com>2017-11-25 12:28:41 +0100
commitceff312db8354049d97c2a84889cd7f56d37fd99 (patch)
treeda86b7c571676f5d3b600d4b20963be611351528 /app/DoctrineMigrations/Version20170824113337.php
parentf818f64145fa929c399277b665a84a87f31bbacd (diff)
parentf4e7a0df0e5917c51889f95e049eda2f81a8416e (diff)
downloadwallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.tar.gz
wallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.tar.zst
wallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.zip
Merge pull request #3401 from aaa2000/migration-initial
Add an initial doctrine migration
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 /**