mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-09 16:35:27 +00:00
Fixed @Kdecherf's review
This commit is contained in:
parent
705d3c38dc
commit
abce2f05dd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue