]>
Commit | Line | Data |
---|---|---|
a10fc78b | 1 | import * as Sequelize from 'sequelize' |
a10fc78b C |
2 | |
3 | async function up (utils: { | |
4 | transaction: Sequelize.Transaction, | |
5 | queryInterface: Sequelize.QueryInterface, | |
6 | sequelize: Sequelize.Sequelize | |
7 | }): Promise<void> { | |
8 | { | |
9 | const data = { | |
10 | type: Sequelize.STRING(500), | |
11 | allowNull: true, | |
12 | defaultValue: null | |
13 | } | |
14 | await utils.queryInterface.changeColumn('video', 'support', data) | |
15 | } | |
16 | ||
17 | { | |
18 | const data = { | |
19 | type: Sequelize.STRING(500), | |
20 | allowNull: true, | |
21 | defaultValue: null | |
22 | } | |
23 | await utils.queryInterface.changeColumn('videoChannel', 'support', data) | |
24 | } | |
25 | ||
26 | { | |
27 | const data = { | |
28 | type: Sequelize.STRING(500), | |
29 | allowNull: true, | |
30 | defaultValue: null | |
31 | } | |
32 | await utils.queryInterface.changeColumn('videoChannel', 'description', data) | |
33 | } | |
34 | } | |
35 | ||
36 | function down (options) { | |
37 | throw new Error('Not implemented.') | |
38 | } | |
39 | ||
40 | export { | |
41 | up, | |
42 | down | |
43 | } |