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
Alfio Basile boca 2006
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
ibrahim
ibrahim2w ago
can you run supabase migration list to see what the migrations are like between local and remote.
Alfio Basile boca 2006
They differ by two migrations that are present at the local instance
ibrahim
ibrahim2w ago
supabase db diff
supabase db diff
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

Did you find this page helpful?