Open terion-name opened 4 months ago
It seems that this bug has already been fixed in the latest version of the Supabase CLI.
I wanted to take a look at this, so I tried to reproduce the issue locally by following the steps outlined in the migrations attached to this issue. After running the following command:
npx supabase db diff --use-migra -f initial_schema
on Supabase CLI version 1.191.3
, the result was as expected:
No schema changes found
Additionally, after adding an extra column to the "test" table and running the command again, the generated migration contained only the ALTER TABLE
instruction, which is the expected behavior.
It appears this issue has been resolved in the newer versions. Could you please confirm if this is also solved on your end so we can close this issue?
Bug report
Describe the bug
supabase db diff --use-migra
generates same grants in all generationsTo Reproduce
Take migration files from attachments. migrations.zip The problem is already seen there – in last 3 migrations you see the same grants:
Used script:
Running db:dump multiple times creates new same files
Expected behavior
Grants migrations are not duplicated
System information