ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0670-pending-job-default.ts 550 B

123456789101112131415161718192021222324252627
  1. import * as Sequelize from 'sequelize'
  2. async function up (utils: {
  3. transaction: Sequelize.Transaction
  4. queryInterface: Sequelize.QueryInterface
  5. sequelize: Sequelize.Sequelize
  6. db: any
  7. }): Promise<void> {
  8. for (const column of [ 'pendingMove', 'pendingTranscode' ]) {
  9. const data = {
  10. type: Sequelize.INTEGER,
  11. allowNull: false,
  12. defaultValue: 0
  13. }
  14. await utils.queryInterface.changeColumn('videoJobInfo', column, data)
  15. }
  16. }
  17. function down (options) {
  18. throw new Error('Not implemented.')
  19. }
  20. export {
  21. up,
  22. down
  23. }