Skip to content

Commit f8384b9

Browse files
committed
chore: add clickhouse migration to setup-dev-demo script
1 parent 784ee49 commit f8384b9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev-demo/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@
77
"scripts": {
88
"_env:dev": "dotenvx run -f .env.local -f .env --overload --",
99
"start": "npm run _env:dev -- tsx watch index.ts",
10+
1011
"makemigration:sqlite": "npm run _env:dev -- npx --yes prisma migrate dev --create-only --schema=./prisma/sqlite/schema.prisma",
1112
"migrate:sqlite": "npm run _env:dev -- npx --yes prisma migrate deploy --schema=./prisma/sqlite/schema.prisma",
13+
1214
"makemigration:mysql": "npm run _env:dev -- npx --yes prisma migrate dev --create-only --schema=./prisma/mysql/schema.mysql.prisma",
1315
"migrate:mysql": "npm run _env:dev -- npx --yes prisma migrate deploy --schema=./prisma/mysql/schema.mysql.prisma",
16+
1417
"makemigration:postgres": "npm run _env:dev -- npx --yes prisma migrate dev --create-only --schema=./prisma/postgres/schema.postgres.prisma",
1518
"migrate:postgres": "npm run _env:dev -- npx --yes prisma migrate deploy --schema=./prisma/postgres/schema.postgres.prisma",
19+
20+
"migrate:clickhouse": "npx clickhouse-migrations migrate --host=http://localhost:8124/demo --user=demo --password=demo --db=demo --migrations-home=./migrations/clickhouse_migrations",
21+
1622
"install-plugins": "cd ../plugins && bash install-plugins.sh",
1723
"install-adapters": "cd ../adapters && bash install-adapters.sh",
18-
"setup-dev-demo": "cp .env.local .env && npm run install-plugins && npm run install-adapters && npm install && bash ./run_inventory.sh && npm run migrate:sqlite && npm run migrate:mysql && npm run migrate:postgres"
24+
25+
"setup-dev-demo": "cp .env.local .env && npm run install-plugins && npm run install-adapters && npm install && bash ./run_inventory.sh && npm run migrate:sqlite && npm run migrate:mysql && npm run migrate:postgres && npm run migrate:clickhouse"
1926
},
2027
"author": "",
2128
"license": "ISC",

0 commit comments

Comments
 (0)