This is a migrated thread and some comments may be shown as answers.

[Solved] Replacing Schema

1 Answer 75 Views
Data Storage for HTML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bart
Top achievements
Rank 1
Bart asked on 07 Oct 2014, 07:22 PM
I see that the schema is a read only after being defined and can be defined only if the database doesn't previously exist.  What is the recommended way to update the schema using Telerik Data Storage?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 08 Oct 2014, 10:15 AM
Hello Bart,

The only way to change the schema is to recreate the database. If you do not want to create a database with a new name, you can manually delete the existing one. To do so, go to C:\Users\[User]\AppData (it is a hidden folder) and search for files with .db3 extension. The file will have the same name as your database.

If the database is already on user devices, you can try using the WinJS API to delete it: StorageFile class

Regards,
Tsvetina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Data Storage for HTML
Asked by
Bart
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or