storm-apt/api/src/main/java/com/turbomanage/storm/DatabaseHelper.java
@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		switch (getUpgradeStrategy()) {
		case DROP_CREATE:
			this.dropAndCreate(db);
			break;
		case BACKUP_RESTORE:
			this.backupAndRestore(this.getContext(), db);
			break;
		case UPGRADE:
			this.upgrade(db, oldVersion, newVersion);
			break;
		}
	}
@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		switch (getUpgradeStrategy()) {
		case DROP_CREATE:
			this.dropAndCreate(db);
			break;
		case BACKUP_RESTORE:
			this.backupAndRestore(this.getContext(), db);
			break;
		case UPGRADE:
			this.upgrade(db, oldVersion, newVersion);
			break;
		}
	}
@ Override public void onUpgrade ( SQLiteDatabase db , int oldVersion , int newVersion ) { switch ( getUpgradeStrategy ( ) ) { case DROP_CREATE : this . dropAndCreate ( db ) ; break ; case BACKUP_RESTORE : this . backupAndRestore ( this . getContext ( ) , db ) ; break ; case UPGRADE : this . upgrade ( db , oldVersion , newVersion ) ; break ; } }
Calls a method on each TableHelper depending on the {@link UpgradeStrategy}.
In order to prevent recursive calls to getDatabase(), this method must pass
the db parameter through to any other methods that need it.

@see <a href="https://code.google.com/p/storm-gen/issues/detail?id=11">Issue 11</a>
@see android.database.sqlite.SQLiteOpenHelper#onUpgrade(android.database.sqlite.SQLiteDatabase, int, int)
Calls a method on each TableHelper depending on the { @link UpgradeStrategy } . In order to prevent recursive calls to getDatabase () this method must pass the db parameter through to any other methods that need it .