]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - 0515-video-abuse-reason-timestamps.ts
c583356171dc32c481e2bd70c36a72535dabd063
[github/Chocobozzz/PeerTube.git] / 0515-video-abuse-reason-timestamps.ts
1 import * as Sequelize from 'sequelize'
2
3 async function up (utils: {
4 transaction: Sequelize.Transaction
5 queryInterface: Sequelize.QueryInterface
6 sequelize: Sequelize.Sequelize
7 }): Promise<void> {
8 await utils.queryInterface.addColumn('videoAbuse', 'predefinedReasons', {
9 type: Sequelize.ARRAY(Sequelize.INTEGER),
10 allowNull: true
11 })
12
13 await utils.queryInterface.addColumn('videoAbuse', 'startAt', {
14 type: Sequelize.INTEGER,
15 allowNull: true
16 })
17
18 await utils.queryInterface.addColumn('videoAbuse', 'endAt', {
19 type: Sequelize.INTEGER,
20 allowNull: true
21 })
22 }
23
24 function down (options) {
25 throw new Error('Not implemented.')
26 }
27
28 export {
29 up,
30 down
31 }