]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/initializers/migrations/0255-video-blacklist-reason.ts
Add way to set root password by environment.
[github/Chocobozzz/PeerTube.git] / server / initializers / migrations / 0255-video-blacklist-reason.ts
1 import * as Sequelize from 'sequelize'
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 = {
12 type: Sequelize.STRING(300),
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 }