Skip to content
Snippets Groups Projects
Commit 1cd255c1 authored by timothycarambat's avatar timothycarambat
Browse files

deprecate /migrate endpoint

parent 7de23dbb
No related branches found
No related tags found
No related merge requests found
...@@ -55,10 +55,6 @@ function systemEndpoints(app) { ...@@ -55,10 +55,6 @@ function systemEndpoints(app) {
}); });
app.get("/migrate", async (_, response) => { app.get("/migrate", async (_, response) => {
const execSync = require("child_process").execSync;
execSync("npx prisma migrate deploy --schema=./prisma/schema.prisma", {
stdio: "inherit",
});
response.sendStatus(200); response.sendStatus(200);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment