Skip to content

Commit

Permalink
configuration bugfix for sql server, upgrade scripts improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed May 23, 2018
1 parent ff143ef commit 28de16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/sql/_all/sqlserver-upgrade-3.7-3.8.sql
Expand Up @@ -167,7 +167,6 @@ ALTER TABLE m_audit_item ADD CONSTRAINT fk_audit_item FOREIGN KEY (record_id) RE
ALTER TABLE m_audit_prop_value ADD CONSTRAINT fk_audit_prop_value FOREIGN KEY (record_id) REFERENCES m_audit_event;
ALTER TABLE m_audit_ref_value ADD CONSTRAINT fk_audit_ref_value FOREIGN KEY (record_id) REFERENCES m_audit_event;

-- TODO fix
-- ALTER TABLE m_audit_item ALTER COLUMN changedItemPath NVARCHAR(255) COLLATE database_default NOT NULL;

ALTER TABLE m_audit_delta ADD deltaBlob VARBINARY(MAX);
Expand Down Expand Up @@ -1232,3 +1231,5 @@ ALTER TABLE m_user
ADD CONSTRAINT fk_user FOREIGN KEY (oid) REFERENCES m_focus;
ALTER TABLE m_value_policy
ADD CONSTRAINT fk_value_policy FOREIGN KEY (oid) REFERENCES m_object;

GO;
Expand Up @@ -95,7 +95,7 @@ private HikariConfig createConfig() {
// config.setAutoCommit(false);

TransactionIsolation ti = configuration.getTransactionIsolation();
if (ti != null) {
if (ti != null && TransactionIsolation.SNAPSHOT != ti) {
config.setTransactionIsolation("TRANSACTION_" + ti.name());
}

Expand Down

0 comments on commit 28de16f

Please sign in to comment.