0215-video-support-length.ts 873 B

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