]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/initializers/migrations/0050-video-language.ts
Possibility to set custom RTMP/RTMPS hostname (#4811)
[github/Chocobozzz/PeerTube.git] / server / initializers / migrations / 0050-video-language.ts
CommitLineData
6fcd19ba 1import * as Sequelize from 'sequelize'
6fcd19ba
C
2
3function up (utils: {
a1587156
C
4 transaction: Sequelize.Transaction
5 queryInterface: Sequelize.QueryInterface
6fcd19ba
C
6 sequelize: Sequelize.Sequelize
7}): Promise<void> {
3092476e 8 const q = utils.queryInterface
3092476e
C
9
10 const data = {
11 type: Sequelize.INTEGER,
12 allowNull: true,
13 defaultValue: null
14 }
15
6fcd19ba 16 return q.addColumn('Videos', 'language', data)
3092476e
C
17}
18
0a6658fd 19function down (options) {
3092476e
C
20 throw new Error('Not implemented.')
21}
65fcc311
C
22
23export {
24 up,
25 down
26}