0255-video-blacklist-reason.ts 546 B

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