Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

AutoSync doesn't work #4

Open
rdethurens opened this issue Mar 21, 2017 · 5 comments
Open

AutoSync doesn't work #4

rdethurens opened this issue Mar 21, 2017 · 5 comments

Comments

@rdethurens
Copy link

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.

@jase88
Copy link

jase88 commented May 7, 2017

Same here on websql

@bolivir
Copy link

bolivir commented Sep 18, 2017

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?

@rdethurens
Copy link
Author

rdethurens commented Sep 18, 2017

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.

@mo-ba
Copy link

mo-ba commented Sep 29, 2017

any progress?
#14

@rdethurens
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants