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

db introspection generated schema withvalid<field>Types missing In<schema> suffix #550

Open
ynagorny-yotascale opened this issue Aug 18, 2024 · 0 comments

Comments

@ynagorny-yotascale
Copy link

ynagorny-yotascale commented Aug 18, 2024

in drizzle.config.ts I have:

...
  dialect: "postgresql",
  schemaFilter: "aaa",
...

drizzle-kit introspect generated schema.ts with:

...
export const aaa = pgSchema("aaa");
export const validRoleTypesInAaa = aaa.enum("valid_role_types", ['custom', 'internal'])
...
export const usersInAaa = aaa.table("users", {
...
	status: validStatusTypes("status").notNull(),
...

It fails to compile. I believe the validStatusTypes call should be validStatusTypesInAaa

@ynagorny-yotascale ynagorny-yotascale changed the title valid<field>Types is missing In<schema> suffix db introspection generated schema withvalid<field>Types missing In<schema> suffix Aug 18, 2024
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