chore: enable foreign keys constraints in CLI runs
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
This commit is contained in:
parent
7bcf380198
commit
a70e95fb7e
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import { changeUsernameCommand } from "./commands/change-username";
|
|||
import { disable2FACommand } from "./commands/disable-2fa";
|
||||
import { rekey2FACommand } from "./commands/rekey-2fa";
|
||||
import { resetPasswordCommand } from "./commands/reset-password";
|
||||
import { db } from "../db/db";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
|
|
@ -15,6 +16,8 @@ program.addCommand(rekey2FACommand);
|
|||
program.addCommand(assignOrganizationCommand);
|
||||
|
||||
export async function runCLI(argv: string[]): Promise<boolean> {
|
||||
db.run("PRAGMA foreign_keys = ON;");
|
||||
|
||||
const args = argv.slice(2);
|
||||
const isCLIMode = process.env.ZEROBYTE_CLI === "1";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue