Closed dustinvtran closed 2 years ago
Let's create a scripts
folder (on the same level as api
and frontend
) that contains this kind of utility, just like a script to download certain stuff from the database and export it as json, then another script that takes a json of existing, updated entries and uses it to update the db.
Sounds good!
db_maintenance
folder created, will eventually have more documentation/content
3ae558c Added a README.md with minimal examples explained
Example. Find all entries without a link to a database. This way you can go through the set of entries and add the links.
Example. Find all entries with a link to a database and overwritten manual fields. This way you can go through the set of entries and remove the manual fields if they're duplicate, incorrect, or simply not necessary any longer as the databases update over time.
This can be done on the website or we could also just do
grep
-like commands in CLI due to direct access to the faunadb/etc. apis. In either approach, we should document how to complete the workflow.