Skip to content

Instantly share code, notes, and snippets.

@spacesuitdiver
Created June 17, 2016 17:40
Show Gist options
  • Save spacesuitdiver/cc0115fea2178fa5095756fbf8034a31 to your computer and use it in GitHub Desktop.
Save spacesuitdiver/cc0115fea2178fa5095756fbf8034a31 to your computer and use it in GitHub Desktop.
'use strict';
exports.up = function(knex, Promise) {
knex.transaction(trx => {
trx('requestlog').truncate()
.then(() => {
trx.schema.table('requestlog', function (table) {
table.uuid('uuid');
})
.then(() => console.log(path.basename(__filename)))
.catch(console.error);
})
.catch(console.error);
});
};
exports.down = function(knex, Promise) {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment