private void storeApplicationSchema ( ApplicationDefinition appDef ) { String appName = appDef . getAppName ( ) ; Tenant tenant = Tenant . getTenant ( appDef ) ; DBTransaction dbTran = DBService . instance ( tenant ) . startTransaction ( ) ; dbTran . addColumn ( SchemaService . APPS_STORE_NAME , appName , COLNAME_APP_SCHEMA , appDef . toDoc ( ) . toJSON ( ) ) ; dbTran . addColumn ( SchemaService . APPS_STORE_NAME , appName , COLNAME_APP_SCHEMA_FORMAT , ContentType . APPLICATION_JSON . toString ( ) ) ; dbTran . addColumn ( SchemaService . APPS_STORE_NAME , appName , COLNAME_APP_SCHEMA_VERSION , Integer . toString ( CURRENT_SCHEMA_LEVEL ) ) ; DBService . instance ( tenant ) . commit ( dbTran ) ; }
Store the application row with schema version and format .