]>
Commit | Line | Data |
---|---|---|
6fcd19ba C |
1 | import * as Sequelize from 'sequelize' |
2 | import * as Promise from 'bluebird' | |
3 | ||
4 | function up (utils: { | |
5 | transaction: Sequelize.Transaction, | |
6 | queryInterface: Sequelize.QueryInterface, | |
7 | sequelize: Sequelize.Sequelize | |
8 | }): Promise<void> { | |
1d49e1e2 | 9 | const q = utils.queryInterface |
1d49e1e2 C |
10 | |
11 | const data = { | |
12 | type: Sequelize.BOOLEAN, | |
13 | allowNull: false, | |
14 | defaultValue: false | |
15 | } | |
16 | ||
6fcd19ba | 17 | return q.addColumn('Users', 'displayNSFW', data) |
1d49e1e2 C |
18 | } |
19 | ||
0a6658fd | 20 | function down (options) { |
1d49e1e2 C |
21 | throw new Error('Not implemented.') |
22 | } | |
65fcc311 C |
23 | |
24 | export { | |
25 | up, | |
26 | down | |
27 | } |