Add showTutorial field to users table

This commit is contained in:
Johannes Zellner
2016-05-06 13:55:03 +02:00
parent bf99475dbd
commit b0f4396389
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
dbm = dbm || require('db-migrate');
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users ADD COLUMN showTutorial BOOLEAN DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users DROP COLUMN showTutorial', function (error) {
if (error) console.error(error);
callback(error);
});
};