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;
    }
}

@@ -188,14 +188,13 @@
    p
-rivate
+ublic
  SQL
@@ -225,121 +225,19 @@
 lic 
-UpgradeRunnable(String dbName) %7B%0A        this.db = AccessDB.databases.get(dbName).getWriter();%0A    %7D%0A%0A    public 
+void setDB(
 SQLi
@@ -251,14 +251,10 @@
 ase 
-getDB(
+db
 ) %7B%0A
@@ -265,28 +265,26 @@
     
-return 
 this.db
+ = db
 ;%0A    %7D%0A
 %7D%0A
@@ -281,10 +281,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

fix upgrade