Created
March 6, 2018 08:57
-
-
Save milaptank/b2936b4ad43c4cc5ad3c109ae94333de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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