2015-07-10 00:31:45 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.database;
|
|
|
|
|
|
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for updating a database schema.
|
|
|
|
* Implementors provide the update from the prior schema
|
|
|
|
* version to this version, and the downgrade from this schema
|
|
|
|
* version to the next lower version.
|
2015-07-25 21:52:52 +02:00
|
|
|
* <p/>
|
2015-07-10 00:31:45 +02:00
|
|
|
* Implementations must have a public, no-arg constructor.
|
|
|
|
*/
|
|
|
|
public interface DBUpdateScript {
|
|
|
|
void upgradeSchema(SQLiteDatabase database);
|
2015-07-25 21:52:52 +02:00
|
|
|
|
2015-07-10 00:31:45 +02:00
|
|
|
void downgradeSchema(SQLiteDatabase database);
|
|
|
|
}
|