News for hackers. Stuff that matters.
Re:Declarative Schemas for simpler database management by ucarion on Thursday April 03, 2025 @02:46PM (#43573739)
Sorry if asked and answered: can you hand-edit the generated migrations? Like, what if I want to do a create index concurrently or something?
Re:Declarative Schemas for simpler database management by kiwicopple on Thursday April 03, 2025 @03:21PM (#43574171)
yes, you can edit the migrations. The steps are for adding a new column, for example:

1/ Add a new column to the declarative file

2/ Generate a new migration: `supabase db diff -f my_new_migration`

3/ Review/edit the generated migration

Docs are here:

https://supabase.com/docs/guides/local-development/declarati...