[AC-2731] Error migrating any available old databases from 'Application Support/database/*' to the new 'Private Documents'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-12-20T07:51:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | jordi domenech |
Assignee | Paul Dowsett |
Created | 2011-12-20T06:24:50.000+0000 |
Updated | 2016-03-08T07:47:37.000+0000 |
Description
Hi,
I've detected a bug when you try to move the database files under the old Application Support/database directory to the new Private Documents.
Sorry, I have no time to include a use case w/ an example project, but I've found the solution.
The bug is in this change (dbDir method):
https://github.com/appcelerator/titanium_mobile/commit/0ac5f0c53854a437d396d8cace8677f641389c6b#iphone/Classes/TiDatabaseProxy.m
And how to solve it:
https://gist.github.com/1501711
I think it's very important to solve it as this bug actually deletes the old database file without migrating anything
Thank you for raising this, Jordi. When the information is complete, I will be glad to escalate it. Please reopen when you are ready.
Hi! I'm not sure if my ticked helped, but I've just seen that you have solved this bug: https://github.com/appcelerator/titanium_mobile/commit/d3b4341bb634dffd3cc603d92cb7a729986e46d2#iphone/Classes/TiDatabaseProxy.m So... no need for a use case!
Thank you for the update, Jordi.
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance