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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -