I'm using flutter with windows desktop and forget submit objectbox-model.json file to git. The App already run in the production envionment, how to restore the objectbox-model.json file working with production database, and can help me to persitent to VCS.
how to find the objectbox-model.json file on prodcution env
how to find the objectbox-model.json file on prodcution env
You can't, your best option is to rebuild it by hand:
objectbox.g.dart
file is the version released (commit it).dart run build_runner build
. This will create a new objectbox-model.json
, but also overwrite the Dart file.objectbox.g.dart
.getObjectBoxModel()
. It's a code representation of the model JSON file.It can help (after committing changes to the JSON file!) to re-run the generator, then to look in the generated Dart file for any missed changes.