MCPcopy Index your code
hub / github.com/parse-community/parse-server / execute

Method execute

src/SchemaMigrations/DefinedSchemas.js:67–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 async execute() {
68 try {
69 logger.info('Running Migrations');
70 if (this.schemaOptions && this.schemaOptions.beforeMigration) {
71 await Promise.resolve(this.schemaOptions.beforeMigration());
72 }
73
74 await this.executeMigrations();
75
76 if (this.schemaOptions && this.schemaOptions.afterMigration) {
77 await Promise.resolve(this.schemaOptions.afterMigration());
78 }
79
80 logger.info('Running Migrations Completed');
81 } catch (e) {
82 logger.error(`Failed to run migrations: ${e}`);
83 if (process.env.NODE_ENV === 'production') { process.exit(1); }
84 }
85 }
86
87 async executeMigrations() {
88 let timeout = null;

Callers 15

startMethod · 0.80
renewSessionIfNeededFunction · 0.80
getAuthForSessionTokenFunction · 0.80
runFindTriggersFunction · 0.80
delFunction · 0.80
createFunction · 0.80
updateFunction · 0.80
RestWrite.jsFile · 0.80
RestQuery.jsFile · 0.80
includePathFunction · 0.80
sendPushMethod · 0.80

Calls 3

executeMigrationsMethod · 0.95
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected