I am building an app that I want to grow iteratively. This means, of course, that I will need to make changes to the live database at the end of each iteration of development, based on changes to the dev database model.
So as my database model grows and changes, so will the relationships change. And the changes needed on the live database could potentially be quite complex, including not only the relationships between database tables/fields but also of the data that needs to be populated into the live database.
Are there any tools, methods, procedures, approaches that are commonly used with bubble to make this easier?
Well, when I was building my app and then ready to go live, I used Bubble’s “copy dev to live” function to copy over my development database into my live app database (which was empty). But once my app was live, I wouldn’t do that since I was maintaining my live database going forward. This function (copy live to dev, or copy dev to live) completely over-writes one database with the other, with no way of going back, and so one needs to be EXTREMELY careful in using it.
Re: the csv upload and modify functionality, I used it initially to upload data into my dev app. I haven’t used it subsequently. My initial CSV upload was tricky – both in getting fields properly formatted, and also ensuring the whole thing uploaded without error – so I personally have shied away from using it to modify live data. Instead I’ve modified data within Bubble using workflows, where I feel I’m less likely to screw something up.
If, for example, I decided to create a new field in a datatype to connect each entry to one or more entries in another datatype, I would probably:
Create and test the new field in dev.
Create the workflows to modify my dev data, and test them on my dev dataset.
Deploy my dev app (just the app, not the database) to live.
Run the workflows to modify the data on my live database.
Go back to dev and build and test whatever new functionality I am gaining by adding those connections.
Deploy the dev app (not the database) to live.
I created a page with a button to start the backend recursive workflow, and also sometimes I’d create a counter or some other method to track the workflow’s progress.
Final note… if my dataset isn’t too big, sometimes I’ll do bulk data changes using a regular, front-end “make changes to a list” workflow. I’ll set up a RG, build some basic search functionality to isolate the data, and then have a “make changes to a list” execute on the data in the RG.
It all comes down to the nature of the change, the size of your database, and the easiest way to do it given the tools Bubble gives you.