0285-description-support.ts 1.1 KB

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