What is the direction of db diff --linked
Hi!
Is the output of db diff --linked the script needed to make the REMOTE schema equal to the LOCAL schema or the other way around?
I believe hat the docs are not clear enough about this.
4 Replies
Update: some DROP VIEW statements appear when doing db diff --linked. The view exists locally, but not remotely. Notice how it is being DROPPED and not CREATED
can you run
supabase migration list to see what the migrations are like between local and remote.They differ by two migrations that are present at the local instance
should diff against the local migration files, if you add --linked it diffs against the remote schema, if you do --local it diffs against the local schema