package no.nordicsemi.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import org.droidparts.persist.sql.AbstractDBOpenHelper;

public class DBOpenHelper extends AbstractDBOpenHelper {

    private static final String DB_FILE = "Evere.sql";
    private static final int DB_VERSION = 1;

    public DBOpenHelper(Context ctx) {
        super(ctx, DB_FILE, DB_VERSION);
    }

    @Override
    protected void onCreateTables(SQLiteDatabase sqLiteDatabase) {
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        /* TODO: add migration */
        dropTables(db);
        onCreate(db);
    }
}

@@ -157,16 +157,59 @@
 elper;%0A%0A
+import no.nordicsemi.models.LocationPuck;%0A%0A
 public c
@@ -523,24 +523,82 @@
 Database) %7B%0A
+        createTables(sqLiteDatabase, LocationPuck.class);%0A
     %7D%0A%0A    @

Create database table for Location Pucks