Fix for null columns in books.language crash

This commit is contained in:
Uleat committed 2017-01-30 03:08:00 -05:00
1 parent 984a009fbb
commit dc308e2ecb
4 files changed
+7 -2

No files matched your search

@@ -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';