0805-viewer-subdivision.ts 517 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. }): Promise<void> {
  7. const { transaction } = utils
  8. {
  9. const data = {
  10. type: Sequelize.STRING,
  11. allowNull: true
  12. }
  13. await utils.queryInterface.addColumn('localVideoViewer', 'subdivisionName', data, { transaction })
  14. }
  15. }
  16. function down (options) {
  17. throw new Error('Not implemented.')
  18. }
  19. export {
  20. up,
  21. down
  22. }