]>
Commit | Line | Data |
---|---|---|
26b7305a | 1 | import * as Sequelize from 'sequelize' |
26b7305a C |
2 | import { VideoAbuseState } from '../../../shared/models/videos' |
3 | ||
4 | async function up (utils: { | |
5 | transaction: Sequelize.Transaction | |
6 | queryInterface: Sequelize.QueryInterface | |
7 | sequelize: Sequelize.Sequelize | |
8 | }): Promise<any> { | |
9 | ||
10 | { | |
11 | const data = { | |
d23e6a1c | 12 | type: Sequelize.STRING(300), |
26b7305a C |
13 | allowNull: true, |
14 | defaultValue: null | |
15 | } | |
16 | await utils.queryInterface.addColumn('videoBlacklist', 'reason', data) | |
17 | } | |
18 | } | |
19 | ||
20 | function down (options) { | |
21 | throw new Error('Not implemented.') | |
22 | } | |
23 | ||
24 | export { up, down } |