Fix for null columns in books.language crash

This commit is contained in:
Uleat
2017-01-30 03:08:00 -05:00
parent 984a009fbb
commit dc308e2ecb
4 changed files with 7 additions and 2 deletions
@@ -1,4 +1,4 @@
alter table books add language int default 0;
alter table books add language int not null default 0;
drop table if exists reading_is_fundamental;
@@ -0,0 +1,4 @@
UPDATE `books` SET `language` = '0' WHERE `language` IS NULL;
ALTER TABLE `books` MODIFY COLUMN `language` INT NOT NULL DEFAULT '0';