amg
amg
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
you can specify different config file per script for example
"migration:development:push": "drizzle-kit push:sqlite",
"migration:production:push": "drizzle-kit push:sqlite --config=./drizzle_production.config.ts",
"migration:production:embedded:push": "drizzle-kit push:sqlite --config=./drizzle_embedded_replica.config.ts",
"migration:development:push": "drizzle-kit push:sqlite",
"migration:production:push": "drizzle-kit push:sqlite --config=./drizzle_production.config.ts",
"migration:production:embedded:push": "drizzle-kit push:sqlite --config=./drizzle_embedded_replica.config.ts",
were you asking that?
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
Where are you executing it? Your machine?
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
?
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
can yo try pnpx drizzle-kit push:pg
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
you welcome! reach me if you need something
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
you have here 2 interesting post https://medium.com/@andriisherman
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
you run this commands with npm run migration:generate ...
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
in package.json inside scripts
"migration:generate": "drizzle-kit generate:sqlite",
"migration:push": "drizzle-kit push:sqlite",
"migration:production:push": "drizzle-kit push:sqlite --config=./drizzle_production.config.ts",
"migration:generate": "drizzle-kit generate:sqlite",
"migration:push": "drizzle-kit push:sqlite",
"migration:production:push": "drizzle-kit push:sqlite --config=./drizzle_production.config.ts",
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
ok, you have to take into account 4 things, 1. you can create and manage your schema with drizzle [drizzle-orm] https://orm.drizzle.team/docs/sql-schema-declaration 2. you can generate migrations files that are the ones in charge of telling your database how to change to become what you have defined in yous schema (point 1) [drizzle-kit] 3. you apply your changes with [drizzle-kit] via terminal commands defined in the package.json 4. you can query with [drizzle-orm] your database in your application code
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
yes, but think about them as different tools
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
did you check the drizzle kit docs?
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
65 replies
DTDrizzle Team
Created by Naeemgg on 3/4/2024 in #help
Finding it hard to get started with vercel postgres
I think the docs is a good starting point, can you specify what you did not found in the docs?
65 replies