Closed huntedman closed 2 years ago
I'm running into issues with supabase db diff --use-migra
as well. I was able to create the diff with migra, but when I try to apply them I also get an error like "unterminated dollar-quoted string at or near \"$function$\nDECLARE\nis_admin boolean\"
Maybe this issue should be reported in subabase/cli
Yes, this is likely a bug with supabase cli on how we split up migration script to batched statements. I will look into it.
Closing this as doesn't seem to be a migra issue.
I have a function like this
when I do
Everything works as expected. Cool.
Now when I try to build off from this migration, The next changes I introduce and create a migration for will throw an error in the console
And I have no clue why. It looks like a bug with the --migra check? Any ideas on how to debug this?