Compare commits

...
Author SHA1 Message Date
prafull-opensignlabsandGitHub 740ccca1f6 Merge pull request #1704 from OpenSignLabs/updates-14689408163
Merge pull request #547 from OpenSignLabs/staging
2025-04-27 12:21:00 +05:30
prafull-opensignlabs f3b79cb71f Merge pull request #547 from OpenSignLabs/staging
refactor: remove extra comment
2025-04-27 06:50:12 +00:00
prafull-opensignlabsandGitHub f95ea0b9e9 Merge pull request #1702 from OpenSignLabs/updates-14689261849
fix: update migration script
2025-04-27 12:01:50 +05:30
@@ -10,11 +10,9 @@ async function ensureSchema(Parse, className, setupFn) {
try {
// If class exists, update it
await schema.update();
console.log(`✅ Updated schema for ${className}`);
} catch (e) {
// Otherwise, create it
await schema.save();
console.log(`✅ Created schema for ${className}`);
}
}
@@ -24,10 +22,7 @@ async function patchSchema(Parse, className, setupFn) {
setupFn(schema);
try {
await schema.update();
console.log(`🔄 Reverted schema for ${className}`);
} catch (e) {
console.warn(`⚠️ Skipping ${className} in down (not found)`);
}
} catch (e) {}
}
exports.up = async Parse => {