mirror of
https://github.com/Infisical/infisical.git
synced 2025-07-22 13:29:55 +00:00
17 lines
392 B
TypeScript
17 lines
392 B
TypeScript
/* eslint-disable */
|
|
import { execSync } from "child_process";
|
|
import path from "path";
|
|
import promptSync from "prompt-sync";
|
|
|
|
const prompt = promptSync({ sigint: true });
|
|
|
|
const migrationName = prompt("Enter name for migration: ");
|
|
|
|
execSync(
|
|
`npx knex migrate:make --knexfile ${path.join(
|
|
__dirname,
|
|
"../src/db/knexfile.ts"
|
|
)} -x ts ${migrationName}`,
|
|
{ stdio: "inherit" }
|
|
);
|