fix: make the schema_version column not nullable

This commit is contained in:
Liordino Neto 2020-08-25 22:47:07 -03:00 committed by Josh Harvey
parent d6b707ff7a
commit 6177a781a6

View file

@ -2,7 +2,7 @@ const db = require('./db')
module.exports.up = function (next) { module.exports.up = function (next) {
var sql = [ var sql = [
'alter table user_config add column schema_version smallint DEFAULT 1' 'alter table user_config add column schema_version smallint not null DEFAULT 1'
] ]
db.multi(sql, next) db.multi(sql, next)