From 6177a781a6ddd5e2a26bb2f266b535e686f35782 Mon Sep 17 00:00:00 2001 From: Liordino Neto Date: Tue, 25 Aug 2020 22:47:07 -0300 Subject: [PATCH] fix: make the schema_version column not nullable --- migrations/1595295132361-schema-version-on-user-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1595295132361-schema-version-on-user-config.js b/migrations/1595295132361-schema-version-on-user-config.js index e8784b5a..e5dde96b 100644 --- a/migrations/1595295132361-schema-version-on-user-config.js +++ b/migrations/1595295132361-schema-version-on-user-config.js @@ -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)