{"push_id":587457847,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"6676479b36fe88cb57f0a79b7bc4d32b66bd799b","before":"407b12b2ba47cdf4dba1f8d9fb4067e57c55e04c","commits":[{"sha":"6676479b36fe88cb57f0a79b7bc4d32b66bd799b","author":{"email":"a80de7c1ec27f64e2d50f6f2f0a6530f2edc53b4@srcf.net","name":"Iglói Gábor"},"message":"change models to avoid crash on devices\n\nChange models to use class names as Column names, and add several constraints:\n- make all fields of RecordType NOT NULL, and the name UNIQUE:\n  String resource names have to be unique, and all the fields are necessary.\n- make flag attribute not NOT NULL in all models, this has to be false by\n  default when the unflagged objects are collected for synchronization.\nChange schema.sql to be the same as RecordTypes table.\n\nThe application crashed on the Ice Cream sandwich and Gingerbread test devices\nwhen I tried to save the record. According to these pages, the Column name has\nto be the same as the name of the class:\nhttp://stackoverflow.com/questions/23042233/activeandroid-lib-and-foreign-keys\nthe ActiveAndroid guide also uses the same names:\nhttps://github.com/pardom/ActiveAndroid/wiki/Creating-your-database-model\nI also added some additional properties to the Columns following this guide:\nhttps://github.com/codepath/android_guides/wiki/ActiveAndroid-Guide\nto make it work on API 10 and to satisfy the appropriate foreign key constraints,\nchecked by test cases. With the original models I couldn't add records or record\ntypes due to foreign key constraint exceptions.\nThe preloaded database in assets has to be generated again by following the\ninstructions in sql/README.md.","distinct":true,"url":"https://api.github.com/repos/thomaslefeuvre/foxtrot/commits/6676479b36fe88cb57f0a79b7bc4d32b66bd799b"}]}