Open machi1990 opened 4 years ago
@machi1990 that will be perfect issue for DataSync starter
Makes sense, let me transfer the issue there?
Actually this is only valid for this app as we have initial data.
Changed my mind. Data dump restore feature could be improved
Yes, we have it only for the OVP app but seems to me like a typical use case so having dumping and restore features at least as commands could do it.
Feature Request
Current, OVP https://github.com/aerogear/OpenVolunteerPlatform/blob/master/platform/server/src/db.ts is doing multiple functionalities of backing up the db and restoring it by default.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Maybe we can split this into two parts:
The first two files can lead to scripts in
package.json
Describe alternatives you've considered Right now If we want to do backup, we just have to uncomment the backup part in
db.ts
, without forgetting to comment it back to avoid backing up the data each time.