Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2731] Error migrating any available old databases from 'Application Support/database/*' to the new 'Private Documents'

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2011-12-20T07:51:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Reporterjordi domenech
AssigneePaul Dowsett


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


  1. Paul Dowsett 2011-12-20

    Thank you for raising this, Jordi. When the information is complete, I will be glad to escalate it. Please reopen when you are ready.
  2. jordi domenech 2011-12-21

    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!
  3. Paul Dowsett 2012-02-17

    Thank you for the update, Jordi.
  4. Paul Dowsett 2012-02-17

    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

JSON Source