]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/initializers/migrations/0215-video-support-length.ts
Update translations
[github/Chocobozzz/PeerTube.git] / server / initializers / migrations / 0215-video-support-length.ts
CommitLineData
a10fc78b 1import * as Sequelize from 'sequelize'
a10fc78b
C
2
3async function up (utils: {
a1587156
C
4 transaction: Sequelize.Transaction
5 queryInterface: Sequelize.QueryInterface
a10fc78b
C
6 sequelize: Sequelize.Sequelize
7}): Promise<void> {
8 {
9 const data = {
10 type: Sequelize.STRING(500),
11 allowNull: true,
12 defaultValue: null
13 }
14 await utils.queryInterface.changeColumn('video', 'support', data)
15 }
16
17 {
18 const data = {
19 type: Sequelize.STRING(500),
20 allowNull: true,
21 defaultValue: null
22 }
23 await utils.queryInterface.changeColumn('videoChannel', 'support', data)
24 }
25
26 {
27 const data = {
28 type: Sequelize.STRING(500),
29 allowNull: true,
30 defaultValue: null
31 }
32 await utils.queryInterface.changeColumn('videoChannel', 'description', data)
33 }
34}
35
36function down (options) {
37 throw new Error('Not implemented.')
38}
39
40export {
41 up,
42 down
43}