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

44 lines
841 B

  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. {
  8. const data = {
  9. type: Sequelize.INTEGER,
  10. defaultValue: null,
  11. allowNull: true
  12. }
  13. await utils.queryInterface.addColumn('videoFile', 'width', data)
  14. }
  15. {
  16. const data = {
  17. type: Sequelize.INTEGER,
  18. defaultValue: null,
  19. allowNull: true
  20. }
  21. await utils.queryInterface.addColumn('videoFile', 'height', data)
  22. }
  23. {
  24. const data = {
  25. type: Sequelize.FLOAT,
  26. defaultValue: null,
  27. allowNull: true
  28. }
  29. await utils.queryInterface.addColumn('video', 'aspectRatio', data)
  30. }
  31. }
  32. function down (options) {
  33. throw new Error('Not implemented.')
  34. }
  35. export {
  36. up,
  37. down
  38. }