Skip to content

Commit 8d7163f

Browse files
authored
debt(TransactionsImport): remove csvConfig field (#10368)
1 parent 9c44481 commit 8d7163f

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up(queryInterface) {
6+
await queryInterface.removeColumn('TransactionsImports', 'csvConfig');
7+
},
8+
9+
async down(queryInterface, Sequelize) {
10+
await queryInterface.addColumn('TransactionsImports', 'csvConfig', {
11+
type: Sequelize.JSONB,
12+
allowNull: true,
13+
});
14+
},
15+
};

server/models/TransactionsImport.ts

-5
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,6 @@ TransactionsImport.init(
211211
},
212212
},
213213
},
214-
// @deprecated: We've moved this to `settings.csvConfig`. Keeping it here until it's deleted from the database with a migration.
215-
// csvConfig: {
216-
// type: DataTypes.JSONB,
217-
// allowNull: true,
218-
// },
219214
settings: {
220215
type: DataTypes.JSONB,
221216
allowNull: true,

0 commit comments

Comments
 (0)