mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Merge pull request #547 from OpenSignLabs/staging
refactor: remove extra comment
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user