mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-21 23:22:35 +02:00
35 lines
776 B
JavaScript
35 lines
776 B
JavaScript
/**
|
|
*
|
|
* @param {Parse} Parse
|
|
*/
|
|
exports.up = async Parse => {
|
|
// TODO: set className here
|
|
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');
|
|
|
|
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');
|
|
schema.deleteField('SendCompletionMail');
|
|
|
|
// TODO: Set the schema here
|
|
// Example:
|
|
// schema.deleteField('name').deleteField('cash');
|
|
|
|
return schema.update();
|
|
};
|