0260-upload-quota-daily.ts 474 B

12345678910111213141516171819202122
  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<any> {
  7. {
  8. const data = {
  9. type: Sequelize.BIGINT,
  10. allowNull: false,
  11. defaultValue: -1
  12. }
  13. await utils.queryInterface.addColumn('user', 'videoQuotaDaily', data)
  14. }
  15. }
  16. function down (options) {
  17. throw new Error('Not implemented.')
  18. }
  19. export { up, down }