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

Change the schema creation SQL in PostgreSQL #398

Open
syhily opened this issue May 12, 2024 · 0 comments
Open

Change the schema creation SQL in PostgreSQL #398

syhily opened this issue May 12, 2024 · 0 comments

Comments

@syhily
Copy link

syhily commented May 12, 2024

Currently the generated migration may contains a schema SQL if I use pgSchema.

For example, export const schema = pgSchema('duoshuo'); will generate CREATE SCHEMA "duoshuo"; in the migration file.

I think we should change it to CREATE SCHEMA IF NOT EXISTS "duoshuo";.

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

No branches or pull requests

1 participant