From: Nicolas LÅ“uillet Date: Fri, 13 Oct 2017 07:37:03 +0000 (+0200) Subject: Fixed @Kdecherf's review X-Git-Tag: 2.3.0~31^2~2^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=abce2f05dd41bd88d923745a7c8fe56d1f3fd944;p=github%2Fwallabag%2Fwallabag.git Fixed @Kdecherf's review --- 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 $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' CHANGE reading_time reading_time INT(11) NOT NULL;'); break; case 'postgresql': + $this->addSql('UPDATE ' . $this->getTable('entry') . ' SET reading_time = 0 WHERE reading_time IS NULL;'); $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' ALTER COLUMN reading_time SET NOT NULL;'); break; }