jgilfelt/android-sqlite-asset-helper — Issue #1: Create vs. Upgrade: Independent Features?
Author: commonsguy
Created: 2012-02-11 19:33:50+00:00
State: open

To me, it feels like create-a-database-by-copying-from-assets is a logically independent feature from update-a-database-from-a-SQL-script-in-assets. IOW, some developers might want to use the update facility with a database not originally created from assets, and some developers might want to ship a database via assets but use the traditional onUpgrade() approach in Java (e.g., the upgrade cannot be expressed purely in SQL).

Are you supporting these features independently? IOW, can somebody extend SQLiteAssetHelper and elect to override onCreate() **or** onUpgrade() (not both) to handle that themselves? Or will doing so break SQLiteAssetHelper?

Thanks!