package com.feigdev.androidserialsql;

import android.database.sqlite.SQLiteDatabase;

/**
 * Created by ejohn on 9/2/13.
 */
public abstract class UpgradeRunnable implements Runnable {
    private SQLiteDatabase db;

    public UpgradeRunnable(String dbName) {
        this.db = AccessDB.databases.get(dbName).getWriter();
    }

    public SQLiteDatabase getDB() {
        return this.db;
    }
}

package com.feigdev.androidserialsql;

import android.database.sqlite.SQLiteDatabase;

/**
 * Created by ejohn on 9/2/13.
 */
public abstract class UpgradeRunnable implements Runnable {
    public SQLiteDatabase db;

    public void setDB(SQLiteDatabase db) {
        this.db = db;
    }

}

fix upgrade