-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
- Setup Supabase locally on a Mac
- Run a few db migrations locally with
supabase migration new
- Push them to prod with
supabase db push
- Squash prod migrations with
supabase migration squash --linked
- Wait for local migrations to get combined into single file
- Inspect new SQL file
- See arbitrary
\restrict kTrockadcZbBWKVmAbVhIDQlLdcDyZSsAqwkJgYKZgW66LahpYsOt6Cs2cZo2i7
injected at top and bottom and middle of file - Realize file is corrupted
Current workaround is to:
- Delete the squashed file
supabase db pull
- So prod is fine... there is something broken in the sync from prod to local
Expected behavior
Local squashed migration file is not corrupted.
System information
- Version of OS: MacOS 15.6.1 (24G90)
- Version of CLI: 2.48.3
- Version of Docker: 28.4.0, build d8eb465
Additional context
- Node 22.18.0
Metadata
Metadata
Assignees
Labels
No labels