diff options
Diffstat (limited to 'server/initializers/migrations/0005-email-pod.js')
-rw-r--r-- | server/initializers/migrations/0005-email-pod.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/initializers/migrations/0005-email-pod.js b/server/initializers/migrations/0005-email-pod.js new file mode 100644 index 000000000..d90b674a1 --- /dev/null +++ b/server/initializers/migrations/0005-email-pod.js | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | This is just an example. | ||
3 | */ | ||
4 | |||
5 | // utils = { transaction, queryInterface } | ||
6 | exports.up = function (utils, callback) { | ||
7 | const q = utils.queryInterface | ||
8 | const Sequelize = utils.Sequelize | ||
9 | |||
10 | const data = { | ||
11 | type: Sequelize.STRING(400), | ||
12 | allowNull: false | ||
13 | } | ||
14 | |||
15 | q.addColumn('Pods', 'email', data, { transaction: utils.transaction }).asCallback(callback) | ||
16 | } | ||
17 | |||
18 | exports.down = function (options, callback) { | ||
19 | throw new Error('Not implemented.') | ||
20 | } | ||