Skip to content

Commit 9c861ca

Browse files
author
Tangles
committed
force db-push on endpoint
1 parent 3ece6ab commit 9c861ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/app/api/admin/settings/db-push

src/app/api/admin/settings/db-push/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ function runDrizzlePush(): Promise<{ stdout: string; stderr: string }> {
3535
const attempts: Array<{ command: string; args: string[] }> = [
3636
{
3737
command: localDrizzleKitPath,
38-
args: ["push", "--config", "./drizzle.config.ts"],
38+
args: ["push", "--force", "--config", "./drizzle.config.ts"],
3939
},
4040
{
4141
command: "pnpm",
42-
args: ["exec", "drizzle-kit", "push", "--config", "./drizzle.config.ts"],
42+
args: ["exec", "drizzle-kit", "push", "--force", "--config", "./drizzle.config.ts"],
4343
},
4444
];
4545

0 commit comments

Comments
 (0)