diff --git a/server/migrations/20200727051157-add-templates.js b/server/migrations/20200727051157-add-templates.js index b051f5ce93..559bbbb1f9 100644 --- a/server/migrations/20200727051157-add-templates.js +++ b/server/migrations/20200727051157-add-templates.js @@ -7,9 +7,14 @@ module.exports = { allowNull: false, defaultValue: false }); + await queryInterface.addColumn('documents', 'templateId', { + type: Sequelize.UUID, + allowNull: true + }); }, down: async (queryInterface, Sequelize) => { + await queryInterface.removeColumn('documents', 'templateId'); await queryInterface.removeColumn('documents', 'template'); } }; \ No newline at end of file