[TIMOB-6784] iOS: Database - data not transferred when populated database migrated from Titanium's old database folder to Private Documents
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-12-20T09:59:41.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Martijn Kooij |
Assignee | Stephen Tramer |
Created | 2011-12-16T15:01:54.000+0000 |
Updated | 2017-03-22T21:22:06.000+0000 |
Description
As per TIMOB-6273 the decision was made to store all databases in "Private Documents" instead of "Application Support/Database". This change requires any existing database on devices to be moved from the "old" folder to the new location. The code and comments in this change indicate that it was intended to migrate the database, but multiple tests on both simulator and device show that the "old" database is not being copied, but the database is being installed in the new location
Steps to reproduce:
//Resources/data.mydb.sqlite is a "model" database.
var db = Ti.Database.install('/data/mydb.sqlite','mydb');
Martijn - thanks for raising this ticket. Would you explain whether you found a workaround that was successful?
This is a duplicate of an issue we've already resolved for 1.8.0.1 (and is being merged into 1.7.6 and master).
This is a duplicate of ticket TIMOB-6756.
Closing as duplicate with regards to the information provided elsewhere in this ticket.