Skip to content

[BUG]: RLS is disabled on every run of push #4948

@SirCameron

Description

@SirCameron

Report hasn't been filed before.

  • 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.44.4

What version of drizzle-kit are you using?

0.31.4

Other packages

No response

Describe the Bug

When using Supabase migrations always inject an SQL statement to disable RLS for each table.
This is not present in any of the migration files and after long chats with Supabase support, they were able to recreate the issue on their end..
After running migrations, I can see in the Supabase logs that the RLS statements are being run.

example:
alter table "chat_messages" DISABLE row LEVEL SECURITY

This is a major bug. Not sure why Drizzle-kit is adding RLS disable statements to the migrations silently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions