Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use the new pgTable signature instead deprecated #433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

moreal
Copy link

@moreal moreal commented Nov 17, 2024

Since drizzle-orm 0.36.0, the pgTable(name: ..., columns: ..., extraConfig: (...) => PgTableExtraConfig) API is deprecated and pgTable(name: ..., columns: ..., extraConfig: (...) => PgTableExtraConfig[]) API has been introduced.

https://github.com/drizzle-team/drizzle-orm/pull/3193/files#diff-8cc5eab297b00bd8fd753c57063cc3dd441af6c96b23dba32df67e0acfe3f961

So this pull request amends the docs, to guide to use the latest API.

If there are code style conventions to use, please let me know. Because there is no source about it (e.g., CONTRIBUTING.md), I amended the example codes return array without other changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant