drizzle-team / drizzle-team/drizzle-orm

[DOCS]: Recommend using `generatedAwaysAsIdentity` in PG instead of `serial` data type

Open
#3,567 2 comments 1 reaction 0 assignees View on GitHub
docs docs/improvements
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [X] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

0.36.1

### What version of `drizzle-kit` are you using?

0.28.0

### Other packages

_No response_

### Describe the Bug

I am reporting this bug in the hopes that the docs will be updated as it results in countless issues.

The Postgres docs still mention using `serial()` as a datatype but this has been deprecated it will throw errors across different stages.

For anyone reading this: do not using `serial` with Postgres.

Screenshot 2024-11-15 at 4 39 31 PM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.