pardom-zz / ActiveAndroid

Active record style SQLite persistence for Android
http://www.activeandroid.com
4.7k stars 1.03k forks source link

duplicate column name #542

Open teemoY opened 6 years ago

teemoY commented 6 years ago

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' )

javieritis commented 6 years ago

the same problem 😞, some help?

teemoY commented 6 years ago

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

ImangazalievM commented 6 years ago

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

Full Documentation.

hasnain-ahmad commented 4 years ago

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?