diff --git a/src/database/migrations/20220831023546-add-org-metadata.js b/src/database/migrations/20220831023546-add-org-metadata.js index 0484afb6..cb48fe2d 100644 --- a/src/database/migrations/20220831023546-add-org-metadata.js +++ b/src/database/migrations/20220831023546-add-org-metadata.js @@ -5,7 +5,7 @@ export default { await Promise.all( ['organizations'].map((table) => { queryInterface.addColumn(table, 'metadata', { - type: Sequelize.String, + type: Sequelize.STRING, allowNull: true, defaultValue: false, }); @@ -15,9 +15,9 @@ export default { async down(queryInterface) { await Promise.all( - [].map((table) => { + ['organizations'].map((table) => { queryInterface.removeColumn(table, 'metadata'); }), ); }, -}; \ No newline at end of file +};