mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-29 13:26:20 +00:00
.github
.husky
backend
e2e-test
scripts
create-backend-file.ts
create-migration.ts
create-seed-file.ts
generate-schema-types.ts
src
.dockerignore
.eslintignore
.eslintrc.js
.gitignore
.prettierrc.json
Dockerfile
Dockerfile.dev
nodemon.json
package-lock.json
package.json
tsconfig.json
tsup.config.js
vitest.e2e.config.ts
cli
cloudformation
docs
frontend
helm-charts
img
k8-operator
migration
nginx
pg-migrator
.dockerignore
.env.example
.eslintignore
.gitignore
.goreleaser.yaml
.infisicalignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile.standalone-infisical
LICENSE
Makefile
README.md
SECURITY.md
cypress.config.js
docker-compose.dev.yml
docker-compose.pg.yml
docker-compose.yml
package-lock.json
package.json
render.yaml
standalone-entrypoint.sh
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" }
|
|
);
|