From 348c2ce3ff3fe2f25a31f08bfb36c88723a0ce46 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Mar 2022 14:54:29 +0100 Subject: Remove old migration files --- .../initializers/migrations/0115-account-avatar.ts | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 server/initializers/migrations/0115-account-avatar.ts (limited to 'server/initializers/migrations/0115-account-avatar.ts') diff --git a/server/initializers/migrations/0115-account-avatar.ts b/server/initializers/migrations/0115-account-avatar.ts deleted file mode 100644 index 604b6394a..000000000 --- a/server/initializers/migrations/0115-account-avatar.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as Sequelize from 'sequelize' - -async function up (utils: { - transaction: Sequelize.Transaction - queryInterface: Sequelize.QueryInterface - sequelize: Sequelize.Sequelize - db: any -}): Promise { - await utils.db.Avatar.sync() - - const data = { - type: Sequelize.INTEGER, - allowNull: true, - references: { - model: 'Avatars', - key: 'id' - }, - onDelete: 'CASCADE' - } - await utils.queryInterface.addColumn('Accounts', 'avatarId', data) -} - -function down (options) { - throw new Error('Not implemented.') -} - -export { - up, - down -} -- cgit v1.2.3