[ALOY-995] Support turning off iCloud backup for auto-generated model databases
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Models |
Labels | n/a |
Reporter | Tim Poulsen |
Assignee | Tim Poulsen |
Created | 2014-04-25T18:12:10.000+0000 |
Updated | 2014-08-28T21:29:29.000+0000 |
Description
As a developer, I'd like to be able to specify that the database generated by an Alloy model not be backed up to iCloud as part of the model's definition. This functionality is provided now if I install a pre-built database. But it is not implemented for the database file created automatically by the sync adapter.
Original reference at https://github.com/appcelerator/alloy/pull/119#issuecomment-41156201
Code for setting this option with pre-built databases is at /lib/alloy/sync/sql.js, approx line 413
db.file.setRemoteBackup(false)
As pointed out in http://developer.appcelerator.com/question/174874/alloy-database-model need also to reconcile that models are associated with tables. There should be a logical and sure way to turn on or off iCloud backup for the entire DB.
No comments