MCPcopy
hub / github.com/CapSoftware/Cap / runMigrations

Function runMigrations

apps/web/instrumentation.node.ts:86โ€“101  ยท  view source on GitHub โ†—
()

Source from the content-addressed store, hash-verified

84}
85
86async function runMigrations() {
87 const isDockerBuild = buildEnv.NEXT_PUBLIC_DOCKER_BUILD === "true";
88 if (isDockerBuild) {
89 try {
90 console.log("๐Ÿ” DB migrations triggered");
91 console.log("๐Ÿ’ฟ Running DB migrations...");
92
93 await migrateDb();
94
95 console.log("๐Ÿ’ฟ Migrations run successfully!");
96 } catch (error) {
97 console.error("๐Ÿšจ MIGRATION_FAILED", { error });
98 throw error;
99 }
100 }
101}

Callers 1

triggerMigrationsFunction ยท 0.85

Calls 1

migrateDbFunction ยท 0.90

Tested by

no test coverage detected