Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
feat: separate command for generating from db
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Feb 19, 2024
1 parent 2aced47 commit 11c71bc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 721 deletions.
1 change: 1 addition & 0 deletions packages/worker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
drizzle
6 changes: 4 additions & 2 deletions packages/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"private": true,
"module": "./index.ts",
"scripts": {
"db:clean": "rm -rf ./drizzle",
"db:generate-from-db": "pnpm db:clean && pnpm db:pull && drizzle-kit generate:pg --schema ./postgres/schema.ts",
"db:generate-from-meta": "drizzle-kit generate:pg --schema ./postgres/schema.ts --out ./postgres/migrations",
"db:pull": "drizzle-kit introspect:pg --connectionString $POSTGRES_URL --driver pg",
"db:push": "drizzle-kit push:pg --connectionString $POSTGRES_URL --driver pg --schema ./postgres/schema.ts --verbose",
"db:generate": "drizzle-kit generate:pg --schema ./postgres/schema.ts --out ./postgres/migrations"
"db:push": "drizzle-kit push:pg --connectionString $POSTGRES_URL --driver pg --schema ./postgres/schema.ts --verbose"
},
"dependencies": {
"@opensdks/sdk-nango": "0.0.2",
Expand Down
102 changes: 0 additions & 102 deletions packages/worker/postgres/migrations/0000_flowery_quentin_quire.sql

This file was deleted.

Loading

0 comments on commit 11c71bc

Please sign in to comment.