ActiveAndroid icon indicating copy to clipboard operation
ActiveAndroid copied to clipboard

duplicate column name

Open teemoY opened this issue 7 years ago • 4 comments

version 1: version 2: add a table t_user version 3: alter t_user add column gender integer

when i update from version 1 to version 3, and exception appears( duplicate column name 'gender' )

teemoY avatar Jan 09 '18 02:01 teemoY

the same problem 😞, some help?

javieritis avatar Jan 22 '18 12:01 javieritis

i just forked a branch, and modify the DatabaseHelper.java, catch all the migration methods, https://github.com/teemoY/ActiveAndroid/blob/teemo-3.1.0/src/com/activeandroid/DatabaseHelper.java

stupid and valid

teemoY avatar Jan 22 '18 13:01 teemoY

Hello. ActiveAndroid no longer be maintained. You can use ReActiveAndroid, it's based on ActiveAndroid.

Full Documentation.

ImangazalievM avatar Jan 24 '18 15:01 ImangazalievM

i just forked a branch, and modify the DatabaseHelper.java, catch all the migration methods, https://github.com/teemoY/ActiveAndroid/blob/teemo-3.1.0/src/com/activeandroid/DatabaseHelper.java

stupid and valid

what did you have change/update/optimize the code for the class of DatabaseHelper.java?

hasnain-ahmad avatar Apr 08 '20 23:04 hasnain-ahmad