From d8b7960063080c0dfd09981384351eeaec137944 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 29 Jul 2020 19:40:30 -0700 Subject: [PATCH] chore: Add templateId to documents --- server/migrations/20200727051157-add-templates.js | 5 +++++ 1 file changed, 5 insertions(+) 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