2
1

0090-videos-description.ts 472 B

12345678910111213141516171819202122232425
  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. const q = utils.queryInterface
  9. const data = {
  10. type: Sequelize.STRING(3000),
  11. allowNull: false
  12. }
  13. await q.changeColumn('Videos', 'description', data)
  14. }
  15. function down (options) {
  16. throw new Error('Not implemented.')
  17. }
  18. export {
  19. up,
  20. down
  21. }