1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-17 02:44:04 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/database/DBUpdateScript.java
Andreas Shimokawa dbbcf20bbc reformat code
2015-07-25 21:52:52 +02:00

18 lines
519 B
Java

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.
* <p/>
* Implementations must have a public, no-arg constructor.
*/
public interface DBUpdateScript {
void upgradeSchema(SQLiteDatabase database);
void downgradeSchema(SQLiteDatabase database);
}