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