drizzle-team / drizzle-team/drizzle-orm-docs
`npx drizzle-kit push` command in 'Get Started with Drizzle and PostgreSQL' errors
- Dominant language
- MDX
- Stars
- 241
- Forks
- 401
- Avg merge
- 5h 44m
- Merged PRs (30d)
- 1
Description
Docs page: https://orm.drizzle.team/docs/get-started/postgresql-new
On GitHub: https://github.com/drizzle-team/drizzle-orm-docs/blob/6277751d4cb75dcf759ebf5f0379438c8234de28/src/content/docs/get-started/postgresql-new.mdx#L22
Two things:
1. Under "Step 6 - Applying changes to the database", running "npx drizzle-kit push" results in:
```
Reading config file '[...]/drizzle.config.ts'
Using 'pg' driver for database querying
[⣷] Pulling schema from database...
AggregateError [ECONNREFUSED]:
at [...]/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Object.query ([...]/node_modules/drizzle-kit/bin.cjs:78762:26)
at async fromDatabase2 ([...]/node_modules/drizzle-kit/bin.cjs:37273:25) {
code: 'ECONNREFUSED',
...
```
Running with `npx drizzle-kit push:pg` is ok, but produces a warning:
> This command is deprecated, please use updated 'push' command (see https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210)
2. Under "Step 3 - Connect Drizzle ORM to the database" this entire line of imports is unused:
```
import { pgTable, serial, text, varchar } from "drizzle-orm/pg-core";
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.