Skip to content

🔥 The free & Open Source DocuSign alternative

fix: update migration script add SendCompletionMail filed in contracts_Document class

RaktimaNXG37fd7bbeda88
diff --git a/apps/OpenSignServer/databases/migrations/20240521184801-update_contracts_document_cls_cjs.cjs b/apps/OpenSignServer/databases/migrations/20240521184801-update_contracts_document_cls_cjs.cjs
index 3429f64aa..8575d42a2 100644
--- a/apps/OpenSignServer/databases/migrations/20240521184801-update_contracts_document_cls_cjs.cjs
+++ b/apps/OpenSignServer/databases/migrations/20240521184801-update_contracts_document_cls_cjs.cjs
@@ -7,6 +7,7 @@ exports.up = async Parse => {
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.addBoolean('SendMail');
+ schema.addBoolean('SendCompletionMail');
// TODO: Set the schema here
// Example:
// schema.addString('name').addNumber('cash');
@@ -23,6 +24,7 @@ exports.down = async Parse => {
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.deleteField('SendMail');
+ schema.deleteField('SendCompletionMail');
// TODO: Set the schema here
// Example: