fix: add migration script to add new filed SendMail and handle email sent using share link from inProgress report

This commit is contained in:
RaktimaNXG
2024-05-22 09:50:12 +05:30
parent 481b9ac1e0
commit 71fbde0099
4 changed files with 70 additions and 32 deletions
@@ -0,0 +1,32 @@
/**
*
* @param {Parse} Parse
*/
exports.up = async Parse => {
// TODO: set className here
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.addBoolean('SendMail');
// TODO: Set the schema here
// Example:
// schema.addString('name').addNumber('cash');
return schema.update();
};
/**
*
* @param {Parse} Parse
*/
exports.down = async Parse => {
// TODO: set className here
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.deleteField('SendMail');
// TODO: Set the schema here
// Example:
// schema.deleteField('name').deleteField('cash');
return schema.update();
};