]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - 0540-video-file-infohash.ts
550178dab3781b1689b2c3dc8eca6f31f4a37572
[github/Chocobozzz/PeerTube.git] / 0540-video-file-infohash.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 {
9 const data = {
10 type: Sequelize.STRING,
11 defaultValue: null,
12 allowNull: true
13 }
14
15 await utils.queryInterface.changeColumn('videoFile', 'infoHash', data)
16 }
17 }
18
19 function down (options) {
20 throw new Error('Not implemented.')
21 }
22
23 export {
24 up,
25 down
26 }