static String defineFileName ( SQLiteDatabaseSchema model ) { int lastIndex = model . fileName . lastIndexOf ( "." ) ; String schemaName = model . fileName ; if ( lastIndex > - 1 ) { schemaName = model . fileName . substring ( 0 , lastIndex ) ; } schemaName = schemaName . toLowerCase ( ) + "_schema_" + model . version + ".sql" ; return schemaName ; }
Define file name .