cli
cli copied to clipboard
db diff doesn't detect changes to publication
Bug report
Describe the bug
db diff doesn't detect changes to publication
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Enable realtime for a table or create a
publicationwith SQL - run
db diff
Expected behavior
A new migration is created
Additional context
Probably related: https://github.com/supabase/cli/issues/805
What is the recommended way of enabling publications in my migration files, given that db diff does not work.
Can I just write the following in my migrations:
CREATE PUBLICATION mypublication FOR TABLE mytable;
Still an issue as of supabase CLI 2.12.1
Any updates on this? This would be really convenient to toggle a powersync publication in the dashboard only, instead of also having to modify the migration to add the publication for the table.
Any updates on this?
@sweatybridge