pardom-zz / ActiveAndroid

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

how to change foreign key constraints in table ?can you give a example. #559

Open haohz1987 opened 5 years ago

haohz1987 commented 5 years ago
@Column(name="coin",unique=true,onUniqueConflict=Column.ConflictAction.REPLACE)
public String coin; 
@Column(name="address")
public String address;  

how to change foreign key constraints from 'coin' to 'address'

naXa777 commented 5 years ago

where's the foreign key constraint? I see only unique constraint.