With Supabase Link we can link our local project to a remote database. Then we can use the command npx supabase db diff -f <fileName>
to create a local migration file.
Then we use npx supabase db push
to apply our local changes to the remote database.