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