Skip to content

Instantly share code, notes, and snippets.

@milaptank
Created March 6, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milaptank/b2936b4ad43c4cc5ad3c109ae94333de to your computer and use it in GitHub Desktop.
Save milaptank/b2936b4ad43c4cc5ad3c109ae94333de to your computer and use it in GitHub Desktop.
package com.core.storage;
import android.database.sqlite.SQLiteDatabase;
public abstract class DatabaseConfig {
/**
* Override this method and execute the table creation
* queries using <CODE>DatabaseHelper.executeSQL()</CODE> method.
*
* @param db
* @author milap
*/
public abstract void onCreate(SQLiteDatabase db) throws Exception;
/**
* Override this method and execute the upgrade
* queries using <CODE>DatabaseHelper.executeSQL()</CODE> method.
*
* @param db
* @throws Exception
* @author Ketan
*/
public abstract void onUpgrade(SQLiteDatabase db) throws Exception;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment