aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-10-13 09:37:03 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-10-13 10:11:24 +0200
commitabce2f05dd41bd88d923745a7c8fe56d1f3fd944 (patch)
treee13de69a77da0a0ce0a3fdc55382843a9bff85c1 /app/DoctrineMigrations
parent705d3c38dc6eb823b8a6371ea8a85027b2467299 (diff)
downloadwallabag-abce2f05dd41bd88d923745a7c8fe56d1f3fd944.tar.gz
wallabag-abce2f05dd41bd88d923745a7c8fe56d1f3fd944.tar.zst
wallabag-abce2f05dd41bd88d923745a7c8fe56d1f3fd944.zip
Fixed @Kdecherf's review
Diffstat (limited to 'app/DoctrineMigrations')
-rw-r--r--app/DoctrineMigrations/Version20171008195606.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20171008195606.php b/app/DoctrineMigrations/Version20171008195606.php
index 87828afd..c190f4ed 100644
--- a/app/DoctrineMigrations/Version20171008195606.php
+++ b/app/DoctrineMigrations/Version20171008195606.php
@@ -34,6 +34,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI
34 $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' CHANGE reading_time reading_time INT(11) NOT NULL;'); 34 $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' CHANGE reading_time reading_time INT(11) NOT NULL;');
35 break; 35 break;
36 case 'postgresql': 36 case 'postgresql':
37 $this->addSql('UPDATE ' . $this->getTable('entry') . ' SET reading_time = 0 WHERE reading_time IS NULL;');
37 $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' ALTER COLUMN reading_time SET NOT NULL;'); 38 $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' ALTER COLUMN reading_time SET NOT NULL;');
38 break; 39 break;
39 } 40 }