diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-11-21 11:03:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 11:03:39 +0100 |
commit | fb258aeef0a28ce9aaebac8f337b9970bd99e70d (patch) | |
tree | e132e2834e11c8d0dcdc001dfe08fd053ed2fe87 /app/DoctrineMigrations | |
parent | f4f7994c40ca57c7e6f8ca0a3d298c50c4e5f813 (diff) | |
parent | 64a5a6cfc5211a42b267a623588ddb3c0b527aa4 (diff) | |
download | wallabag-fb258aeef0a28ce9aaebac8f337b9970bd99e70d.tar.gz wallabag-fb258aeef0a28ce9aaebac8f337b9970bd99e70d.tar.zst wallabag-fb258aeef0a28ce9aaebac8f337b9970bd99e70d.zip |
Merge pull request #3426 from wallabag/fix-migration-3373
Fix MySQL issue on mig from #3373
Diffstat (limited to 'app/DoctrineMigrations')
-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 c190f4ed..f09726c8 100644 --- a/app/DoctrineMigrations/Version20171008195606.php +++ b/app/DoctrineMigrations/Version20171008195606.php | |||
@@ -31,6 +31,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI | |||
31 | 31 | ||
32 | switch ($this->connection->getDatabasePlatform()->getName()) { | 32 | switch ($this->connection->getDatabasePlatform()->getName()) { |
33 | case 'mysql': | 33 | case 'mysql': |
34 | $this->addSql('UPDATE ' . $this->getTable('entry') . ' SET reading_time = 0 WHERE reading_time IS NULL;'); | ||
34 | $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' CHANGE reading_time reading_time INT(11) NOT NULL;'); | 35 | $this->addSql('ALTER TABLE ' . $this->getTable('entry') . ' CHANGE reading_time reading_time INT(11) NOT NULL;'); |
35 | break; | 36 | break; |
36 | case 'postgresql': | 37 | case 'postgresql': |