Skip to content

Commit 422126a

Browse files
Sqlite ppg migration (#7570)
* chore: update readme.md * chore: update readme * chore: update readmes to be more consistent * chore: add typedsql to the examples * chore: add more code fixes * chore: convert fluent api queries * chore: clean up spaces * refine: add more details * chore: refine content further * fix: tests for jest * fix: add tests in sequence * fix: add database url * fix: add seeders to tests * fix: update tests * fix: typedsql tests * fix: test scripts * fix: remove accelerate from typedsql * fix: remove migrations for typedsql * fix: postgis db url * fix: tests * update express README * update express README * remove @latest from prisma init command because we're using the local prisma cli version * update titles of READMEs to inlcude PPg * simplify intro sentences of readmes * add convenience options to try-prisma commands * update dummy connection string * update region and project name prompts as bullets * update .env file creation and add curl calls * update readmes * add curl commands * update readmes * update main readme --------- Co-authored-by: Nikolas Burk <[email protected]>
1 parent 333d61d commit 422126a

File tree

199 files changed

+6914
-4214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+6914
-4214
lines changed

.github/tests/orm/express/run.sh

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/fastify-graphql-sdl-first/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/fastify-graphql/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/fastify/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/graphql-auth/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
set -eu
44

5+
6+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
7+
58
npm install
9+
npx prisma migrate reset --force --skip-seed
610
npx prisma migrate dev --name init
11+
npx prisma db seed
712
npm run dev &
813
pid=$!
914

.github/tests/orm/graphql-nexus/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

1014
sleep 20
1115

12-
npx newman run ../../.github/tests/postman_collections/graphql.json --bail
16+
npx newman run ../../.github/tests/postman_collections/graphql.json --bail --verbose
1317

1418
kill "$pid"

.github/tests/orm/graphql-sdl-first/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/graphql-subscriptions/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5-
npm install
5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
7+
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/graphql-typegraphql-crud/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

.github/tests/orm/graphql-typegraphql/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -eu
44

5+
export DATABASE_URL="${PPG_TEST_DATABASE_URL}"
6+
57
npm install
8+
npx prisma migrate reset --force --skip-seed
69
npx prisma migrate dev --name init
10+
npx prisma db seed
711
npm run dev &
812
pid=$!
913

0 commit comments

Comments
 (0)