0375-account-description.ts 482 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 data = {
  9. type: Sequelize.STRING(1000),
  10. allowNull: true,
  11. defaultValue: null
  12. }
  13. await utils.queryInterface.changeColumn('account', 'description', data)
  14. }
  15. function down (options) {
  16. throw new Error('Not implemented.')
  17. }
  18. export {
  19. up,
  20. down
  21. }