diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 25b2dff84..3a5a557d4 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -9,7 +9,7 @@ import { isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 140 +const LAST_MIGRATION_VERSION = 145 // --------------------------------------------------------------------------- diff --git a/server/initializers/migrations/0145-delete-author.ts b/server/initializers/migrations/0145-delete-author.ts new file mode 100644 index 000000000..cb23d1cc2 --- /dev/null +++ b/server/initializers/migrations/0145-delete-author.ts @@ -0,0 +1,18 @@ +import * as Sequelize from 'sequelize' + +async function up (utils: { + transaction: Sequelize.Transaction, + queryInterface: Sequelize.QueryInterface, + sequelize: Sequelize.Sequelize +}): Promise { + await utils.queryInterface.dropTable('Authors') +} + +function down (options) { + throw new Error('Not implemented.') +} + +export { + up, + down +}