Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How are database migrations handled in this? Ive never understood how BaaSes are to be used when I need to add a new column to my table and do some inserts into it in the same migration


PocketBase has a pb_migrations/ directory. If you throw a file of a certain format, PocketBase will automatically loaded it and update the DB.


Oh neat, that would absolutely do the job. Just git push and let the gitops do the rest!


A lot of these tools just abstract away migrations. But I do know some like Supabase let you clone a copy locally and manually perform migrations if you see fit




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: