Skip to content

Instantly share code, notes, and snippets.

@ncwhale
Created May 26, 2016 03:23
Show Gist options
  • Save ncwhale/21fdad5d404344c1aeb9c5952fac9476 to your computer and use it in GitHub Desktop.
Save ncwhale/21fdad5d404344c1aeb9c5952fac9476 to your computer and use it in GitHub Desktop.
不小心删除了整个库的 migration喵……
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.sequelize.query('CREATE EXTENSION IF NOT EXISTS pgcrypto;');
},
down: function (queryInterface, Sequelize) {
// 这是大地终焉之处
// return queryInterface.dropAllTables()
// .then(result => {
return queryInterface.sequelize.query('DROP EXTENSION IF EXISTS pgcrypto;');
// });
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment