@Override
	public void execute(SQLiteDatabase database, int previuosVersion, int currentVersion) {
		List<String> executionList=null;
	
		if (inputStream==null) {
			File f = new File(schemaDefinitionFile);
			executionList = SQLiteUpdateTaskHelper.readSQLFromFile(schemaDefinitionFile);
			Logger.info("Load DDL from " + f.getAbsolutePath());
		} else {
			executionList = SQLiteUpdateTaskHelper.readSQLFromFile(inputStream);
			Logger.info("Load DDL from stream");
		}
		
		for (String item : executionList) {
			Logger.info(item);
			database.execSQL(item);
		}

	}
@ Override public void execute ( SQLiteDatabase database , int previuosVersion , int currentVersion ) { List < String > executionList = null ; if ( inputStream == null ) { File f = new File ( schemaDefinitionFile ) ; executionList = SQLiteUpdateTaskHelper . readSQLFromFile ( schemaDefinitionFile ) ; Logger . info ( "Load DDL from " + f . getAbsolutePath ( ) ) ; } else { executionList = SQLiteUpdateTaskHelper . readSQLFromFile ( inputStream ) ; Logger . info ( "Load DDL from stream" ) ; } for ( String item : executionList ) { Logger . info ( item ) ; database . execSQL ( item ) ; } }
/* (non-Javadoc)
@see com.abubusoft.kripton.android.sqlite.SQLiteUpdateTask#execute(android.database.sqlite.SQLiteDatabase, int, int)