ニジカ投稿局 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.

0860-caption-generated.ts 717 B

12345678910111213141516171819202122232425262728293031
  1. import * as Sequelize from 'sequelize'
  2. async function up (utils: {
  3. transaction: Sequelize.Transaction
  4. queryInterface: Sequelize.QueryInterface
  5. sequelize: Sequelize.Sequelize
  6. }): Promise<void> {
  7. const { transaction } = utils
  8. {
  9. await utils.queryInterface.addColumn('videoCaption', 'automaticallyGenerated', {
  10. type: Sequelize.BOOLEAN,
  11. defaultValue: false,
  12. allowNull: false
  13. }, { transaction })
  14. await utils.queryInterface.changeColumn('videoCaption', 'automaticallyGenerated', {
  15. type: Sequelize.BOOLEAN,
  16. defaultValue: null,
  17. allowNull: false
  18. }, { transaction })
  19. }
  20. }
  21. function down (options) {
  22. throw new Error('Not implemented.')
  23. }
  24. export {
  25. down, up
  26. }