0515-video-abuse-reason-timestamps.ts 682 B

12345678910111213141516171819202122232425262728293031
  1. import * as Sequelize from 'sequelize'
  2. async function up (utils: {
  3. transaction: Sequelize.Transaction
  4. queryInterface: Sequelize.QueryInterface
  5. sequelize: Sequelize.Sequelize
  6. }): Promise<void> {
  7. await utils.queryInterface.addColumn('videoAbuse', 'predefinedReasons', {
  8. type: Sequelize.ARRAY(Sequelize.INTEGER),
  9. allowNull: true
  10. })
  11. await utils.queryInterface.addColumn('videoAbuse', 'startAt', {
  12. type: Sequelize.INTEGER,
  13. allowNull: true
  14. })
  15. await utils.queryInterface.addColumn('videoAbuse', 'endAt', {
  16. type: Sequelize.INTEGER,
  17. allowNull: true
  18. })
  19. }
  20. function down (options) {
  21. throw new Error('Not implemented.')
  22. }
  23. export {
  24. up,
  25. down
  26. }