6200: Add personas tables to the CR.

This commit is contained in:
Raman Arora 2020-04-09 09:13:25 -04:00
parent 657ddee3c3
commit dd2ceabe21
2 changed files with 6 additions and 7 deletions

View File

@ -65,7 +65,7 @@ abstract class RdbmsCentralRepo implements CentralRepository {
static final String SCHEMA_MINOR_VERSION_KEY = "SCHEMA_MINOR_VERSION";
static final String CREATION_SCHEMA_MAJOR_VERSION_KEY = "CREATION_SCHEMA_MAJOR_VERSION";
static final String CREATION_SCHEMA_MINOR_VERSION_KEY = "CREATION_SCHEMA_MINOR_VERSION";
static final CaseDbSchemaVersionNumber SOFTWARE_CR_DB_SCHEMA_VERSION = new CaseDbSchemaVersionNumber(1, 4);
static final CaseDbSchemaVersionNumber SOFTWARE_CR_DB_SCHEMA_VERSION = new CaseDbSchemaVersionNumber(1, 5);
protected final List<CorrelationAttributeInstance.Type> defaultCorrelationTypes;

View File

@ -168,8 +168,8 @@ public class RdbmsCentralRepoFactory {
stmt.execute(String.format(getReferenceTypeValueKnownstatusIndexTemplate(), reference_type_dbname, reference_type_dbname));
}
}
// @TODO: uncomment this when ready to create Persona tables.
//createPersonaTables(stmt);
// create Persona tables.
createPersonaTables(stmt);
} catch (SQLException ex) {
LOGGER.log(Level.SEVERE, "Error initializing db schema.", ex); // NON-NLS
return false;
@ -199,10 +199,9 @@ public class RdbmsCentralRepoFactory {
}
result = CentralRepoDbUtil.insertDefaultCorrelationTypes(conn)
&& CentralRepoDbUtil.insertDefaultOrganization(conn) &&
RdbmsCentralRepoFactory.insertDefaultAccountsTablesContent(conn, selectedPlatform );
// @TODO: uncomment when ready to create/populate persona tables
// && insertDefaultPersonaTablesContent(conn);
&& CentralRepoDbUtil.insertDefaultOrganization(conn)
&& RdbmsCentralRepoFactory.insertDefaultAccountsTablesContent(conn, selectedPlatform )
&& insertDefaultPersonaTablesContent(conn, selectedPlatform);
} catch (SQLException ex) {
LOGGER.log(Level.SEVERE, String.format("Failed to populate default data in CR tables."), ex);