Streamability icon indicating copy to clipboard operation
Streamability copied to clipboard

💡 Research & document efficient DB schema workflow

Open maxh1231 opened this issue 2 years ago • 1 comments

DB requires nonoptimal and time-consuming maintenance when updating the schema.

The current workflow is as follows:

  1. Delete profiles table
  2. Delete users.
  3. Delete on_auth_user_created trigger

This results in a inefficient workflow and deleting users may cause unexpected hiccups especially if more devs contribute to the project.

maxh1231 avatar Aug 27 '23 03:08 maxh1231

This can now be done using the Supabase CLI. We can create and test DB migrations locally and then push the migration up to the shared DB. We could even wrap this in a workflow when new migrations are detected in merges to dev/main.

Thenlie avatar Oct 23 '23 20:10 Thenlie