From e6c7a298c4cd2a0b0a148d5ca6f18e6148382d6b Mon Sep 17 00:00:00 2001 From: adriano Date: Thu, 27 Apr 2023 10:17:57 -0300 Subject: [PATCH] =?UTF-8?q?Vers=C3=A3o=20beta=20par=20aprodu=C3=A7=C3=A3o?= =?UTF-8?q?=20do=20ansata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20230425120932-add-accept-to-contacts.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend/src/database/migrations/20230425120932-add-accept-to-contacts.ts diff --git a/backend/src/database/migrations/20230425120932-add-accept-to-contacts.ts b/backend/src/database/migrations/20230425120932-add-accept-to-contacts.ts new file mode 100644 index 0000000..a2f50cf --- /dev/null +++ b/backend/src/database/migrations/20230425120932-add-accept-to-contacts.ts @@ -0,0 +1,15 @@ +import { QueryInterface, DataTypes } from "sequelize"; + +module.exports = { + up: (queryInterface: QueryInterface) => { + return queryInterface.addColumn("Contacts", "accept", { + type: DataTypes.BOOLEAN, + allowNull: false, + defaultValue: false + }); + }, + + down: (queryInterface: QueryInterface) => { + return queryInterface.removeColumn("Contacts", "accept"); + } +};