pardom-zz / ActiveAndroid

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

when i add pre populated database,the other tables with @Table did't be created,why? #444

Open qingfengmy opened 8 years ago

qingfengmy commented 8 years ago

i add prepopulated database ,like this:

<meta-data
            android:name="AA_DB_NAME"
            android:value="populate.db" />
<meta-data
            android:name="AA_DB_VERSION"
            android:value="1" />

i put populate.db at assets folder.

i have other classes like this:

@Table(name = "users", id = "_id")
public class User extends Model implements Serializable{
}

when i run my program,the users table did't be created. but when i delete the populate.db at assets folder.the users talbe is be created normaly after my program runs.

anybody has experienced this problem,and help me please.