-
Notifications
You must be signed in to change notification settings - Fork 6
Seeding the Database
mnipper edited this page Nov 26, 2013
·
1 revision
It may be desirable to quickly seed the database with data without having to sync with remote data.
Set the SEED_DB metadata variable to true in AndroidManifest and start the application. This will add an instrument each time the app starts. When you are happy with your database, set SEED_DB to false.
Note: Currently this is set to only seed the database if being run in debug mode, and to ignore otherwise. This is done to hopefully prevent seeding from making it into production. Open to suggestions on how to better do this.