jeudi 10 décembre 2015

Upgrading Sugar ORM, alter table column_name TEXT

I am using
compile 'com.github.satyan:sugar:1.3'

Now when i use alter table command to add a column to existing table using version.sql file.
It works fine on upgrade but when i add value to this specific column it does not get saved in the table. null value is saved for this column on upgrading the app.

While everything works fine for fresh install.

I am stuck here, can anyone point me towards a possible solution.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire