1 import * as Sequelize from 'sequelize'
3 async function up (utils: {
4 transaction: Sequelize.Transaction,
5 queryInterface: Sequelize.QueryInterface,
6 sequelize: Sequelize.Sequelize,
11 type: Sequelize.BOOLEAN,
16 await utils.queryInterface.addColumn('thumbnail', 'automaticallyGenerated', data)
20 // Set auto generated to true for watch later playlists
21 const query = 'UPDATE thumbnail SET "automaticallyGenerated" = true WHERE "videoPlaylistId" IN ' +
22 '(SELECT id FROM "videoPlaylist" WHERE type = 2)'
24 await utils.sequelize.query(query)
28 function down (options) {
29 throw new Error('Not implemented.')