ionic-orm icon indicating copy to clipboard operation
ionic-orm copied to clipboard

AutoSync doesn't work

Open rdethurens opened this issue 8 years ago • 5 comments
trafficstars

Hi, First, thanks a lot for your work. I'm experiencing a trouble with the "autoSchemaSync: true". It seems that it doesn't work nor in webBrowser nor on android Device. Each time i add a column i get this SQLError code : 5 /message : "could not prepare statement (1 no such column: EntityName.ColumnName)". I tried to use the ionic-orm test and it seems to have the same issue.

Any idea ?

Thanks in advance.

rdethurens avatar Mar 21 '17 13:03 rdethurens

Same here on websql

jase88 avatar May 07 '17 15:05 jase88

Can confirm this problem (websql). If you change something on the schema, and then run you're app it will throw a sql object error. After wiping the DB the app wil run as expected.

This is a big problem when giving out updates where DB changes are required, are there any ways to it manually without the user losing his data?

bolivir avatar Sep 18 '17 07:09 bolivir

Hi, I found a solution by changing some code. But i don't commit my changes to github. (I never do this so it will take time for me, and haven't yet). Hope, i work on it next week.

rdethurens avatar Sep 18 '17 10:09 rdethurens

any progress? https://github.com/BradyLiles/ionic-orm/issues/14

mo-ba avatar Sep 29 '17 10:09 mo-ba

I Update the component : Enable AutoSync On SQLite Enable AutoSync On WebWSql With issues : Always recreate Table / Just Add Column supported Not Update and Delete

available with npm instal ionic-orm3

rdethurens avatar Oct 05 '17 06:10 rdethurens