public virtual Void execute(CommandContext commandContext) { string databaseSchemaUpdate = Context.ProcessEngineConfiguration.DatabaseSchemaUpdate; PersistenceSession persistenceSession = commandContext.getSession(typeof(PersistenceSession)); if (ProcessEngineConfigurationImpl.DB_SCHEMA_UPDATE_DROP_CREATE.Equals(databaseSchemaUpdate)) { try { persistenceSession.dbSchemaDrop(); } catch (Exception) { // ignore } } if (ProcessEngineConfiguration.DB_SCHEMA_UPDATE_CREATE_DROP.Equals(databaseSchemaUpdate) || ProcessEngineConfigurationImpl.DB_SCHEMA_UPDATE_DROP_CREATE.Equals(databaseSchemaUpdate) || ProcessEngineConfigurationImpl.DB_SCHEMA_UPDATE_CREATE.Equals(databaseSchemaUpdate)) { persistenceSession.dbSchemaCreate(); } else if (ProcessEngineConfiguration.DB_SCHEMA_UPDATE_FALSE.Equals(databaseSchemaUpdate)) { persistenceSession.dbSchemaCheckVersion(); } else if (ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE.Equals(databaseSchemaUpdate)) { persistenceSession.dbSchemaUpdate(); } return(null); }
public object execute(CommandContext commandContext) { PersistenceSession persistenceSession = commandContext.getSession(typeof(PersistenceSession)); persistenceSession.dbSchemaDrop(); persistenceSession.dbSchemaCreate(); HistoryLevelSetupCommand.dbCreateHistoryLevel(commandContext); return(null); }