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

[FEATURE]: Create postgresql schema only if not exists #2335

Open
Entsllor opened this issue May 16, 2024 · 0 comments
Open

[FEATURE]: Create postgresql schema only if not exists #2335

Entsllor opened this issue May 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Entsllor
Copy link

Describe what you want

drizzle-kit="0.21.2", drizzle-orm="0.30.10", postgres.js="3.4.4"

When I generate first migration, the migration file contains:

CREATE SCHEMA "my_shema_name";

But I already have this schema. It would be great to have "IF NOT EXISTS" in the migration file

CREATE SCHEMA IF NOT EXISTS "my_shema_name";
@Entsllor Entsllor added the enhancement New feature or request label May 16, 2024
@Entsllor Entsllor changed the title [FEATURE]: Create schema only if not exists [FEATURE]: Create postgresql schema only if not exists May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant