You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.3
What version of drizzle-kit are you using?
0.28.1
Other packages
No response
Describe the Bug
I have a pre-existing supabase database. I ran drizzle-kit pull which generated the drizzle folder including schema.ts
One of the schemas it generated looks like this
export const userInvites = pgView("user_invites", { status: text(),
schoolName: text("school_name"),
}).with({"securityInvoker":"on"}).as(sql`SELECT i.status, s.school_name FROM invites i JOIN schools s ON i.school_id = s.id WHERE i.email_address = get_user_email()`);
The error says:
Type 'string' is not assignable to type 'boolean | undefined'.ts(2322)
view.d.ts(15, 5): The expected type comes from property 'securityInvoker' which is declared here on type 'ViewWithConfig'
I believe it should be .with({"securityInvoker":true})
Is it okay for me to just change those to true in the schema.ts? Is this a bug or did I do something wrong? Thanks
I am using Supabase.
The text was updated successfully, but these errors were encountered:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.3
What version of
drizzle-kit
are you using?0.28.1
Other packages
No response
Describe the Bug
I have a pre-existing supabase database. I ran drizzle-kit pull which generated the drizzle folder including schema.ts
One of the schemas it generated looks like this
The error says:
I believe it should be
.with({"securityInvoker":true})
Is it okay for me to just change those to true in the schema.ts? Is this a bug or did I do something wrong? Thanks
I am using Supabase.
The text was updated successfully, but these errors were encountered: