0145-delete-author.ts 347 B

123456789101112131415161718
  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. await utils.queryInterface.dropTable('Authors')
  8. }
  9. function down (options) {
  10. throw new Error('Not implemented.')
  11. }
  12. export {
  13. up,
  14. down
  15. }