We use only mysql, so updating this means a lot of unused db backends like sqlite do not need to be built with gyp anymore. Note that this version is not yet released as stable, but works fine for us. The outstanding issues are not related to our use-case from what I can tell. Fixes #82
20 lines
541 B
JavaScript
20 lines
541 B
JavaScript
'use strict';
|
|
|
|
exports.up = function(db, callback) {
|
|
db.runSql('DELETE FROM tokens', [], function (error) {
|
|
if (error) console.error(error);
|
|
|
|
db.runSql('ALTER TABLE tokens MODIFY expires BIGINT', [], function (error) {
|
|
if (error) console.error(error);
|
|
callback(error);
|
|
});
|
|
});
|
|
};
|
|
|
|
exports.down = function(db, callback) {
|
|
db.runSql('ALTER TABLE tokens MODIFY expires VARCHAR(512)', [], function (error) {
|
|
if (error) console.error(error);
|
|
callback(error);
|
|
});
|
|
};
|