Created
May 26, 2016 03:23
-
-
Save ncwhale/21fdad5d404344c1aeb9c5952fac9476 to your computer and use it in GitHub Desktop.
不小心删除了整个库的 migration喵……
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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