diff options
Diffstat (limited to 'app/DoctrineMigrations/Version20171008195606.php')
-rw-r--r-- | app/DoctrineMigrations/Version20171008195606.php | 1 |
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 | } |