migration.ts 549 B

12345678910111213141516171819202122232425
  1. import { AbstractQueryInterface, Sequelize } from '@sequelize/core';
  2. export async function up(
  3. queryInterface: AbstractQueryInterface,
  4. sequelize: Sequelize,
  5. ): Promise<void> {
  6. /**
  7. * Add altering commands here.
  8. *
  9. * Example:
  10. * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
  11. */
  12. }
  13. export async function down(
  14. queryInterface: AbstractQueryInterface,
  15. sequelize: Sequelize,
  16. ): Promise<void> {
  17. /**
  18. * Add reverting commands here.
  19. *
  20. * Example:
  21. * await queryInterface.dropTable('users');
  22. */
  23. }