android - ActiveAndroid duplicate column name -
in app i'm using `activeandroid'.
during app version i'm using migration files , increasing db version in documentation.
assume:
1. there device app version 1 (user doesn't update).
2. in app version 2 add new table "mynewtable".
3. in app version 3 add new column "mynewcolumn" "mynewtable".
4. in app version 4 change in db.
migration script:
alter table mynewtable add column mynewcolumn text;
the user app version 1 upgrade version 4 , getting following exception:
android.database.sqlite.sqliteexception: duplicate column name: mynewcolumn (code 1): , while compiling: alter table mynewtable add column mynewcolumn text
similar problem.
does know resolve issue?
Comments
Post a Comment