-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for migrations #31
Comments
Hey @charlietango, I don't know if this sounds interesting to you, but Remake could really use it. Currently, there's no way to undo a mistake in the structure of your data. A few users have requested migration support, as it's necessary for any serious use of Remake. What do you think about the proposed solution? |
This is a much-needed feature, please!! Even if there isn't a perfect solution, there has to be some way at least to change the structure. The only thing Remake doesn't have to make it the best I guess 😳 |
Hey @panphora let's talk this weekend about it. I will take some time to think about the feature and about the solution you suggested. |
@charlietango We only really need one new command to support this: The And, while we should add a feature that tells users their app is out of date and that they need to refresh to get the newest version, we can save this for a future feature build. I think when the dev runs
I think that's all we need for now |
Is your feature request related to a problem? Please describe.
Currently there's no way to restructure the user data if your app is hosted on the Remake hosting service. This is necessary if the structure of your app's data changes.
For example, v1 of your app might only have a single to-do list. But, for v2, you want to have multiple to-do lists. You need a way to loop through all user data and moving their to-do list inside an array of to-do lists.
Describe the solution you'd like
Since Remake probably won't support executing server-side code from users any time soon, an alternate solution would be to let devs modify user data locally and then re-upload it to their live app.
remake backup
and unzip it (currently available command)remake shutdown-app
(new command)/app/data/migrate.js
remake upload-user-data
(new command)remake start-app
(new command)This could all be condensed into a single command
remake migrate
:/app/data/migrate.js
fileDescribe alternatives you've considered
An alternative would be to allow users to execute server code. This is a security risk right now, but if each user was limited to their own virtual server container, it could work.
The text was updated successfully, but these errors were encountered: