Remove showTutorial

This commit is contained in:
Girish Ramakrishnan
2017-01-17 09:07:24 -08:00
parent d392293b50
commit 536c16929b
12 changed files with 30 additions and 52 deletions

View File

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