Add migration to delete old Authors table

pull/175/head
Chocobozzz 2017-12-29 09:42:57 +01:00
parent 7416fbf335
commit efed5d5ef6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 19 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import { isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core
// ---------------------------------------------------------------------------
const LAST_MIGRATION_VERSION = 140
const LAST_MIGRATION_VERSION = 145
// ---------------------------------------------------------------------------

View File

@ -0,0 +1,18 @@
import * as Sequelize from 'sequelize'
async function up (utils: {
transaction: Sequelize.Transaction,
queryInterface: Sequelize.QueryInterface,
sequelize: Sequelize.Sequelize
}): Promise<void> {
await utils.queryInterface.dropTable('Authors')
}
function down (options) {
throw new Error('Not implemented.')
}
export {
up,
down
}