fix: make the schema_version column not nullable
This commit is contained in:
parent
d6b707ff7a
commit
6177a781a6
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ const db = require('./db')
|
|||
|
||||
module.exports.up = function (next) {
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue