From bcb33fb37f2573a89cd77a4a2a4899af49c31aed Mon Sep 17 00:00:00 2001 From: Roman Strobl Date: Thu, 19 Sep 2024 13:47:31 +0800 Subject: [PATCH 1/2] Fix #224: Liquibase complains about existing indexes on Oracle --- .../0.1.x/20230322-audit-indexes.xml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/db/changelog/changesets/user-data-store/0.1.x/20230322-audit-indexes.xml b/docs/db/changelog/changesets/user-data-store/0.1.x/20230322-audit-indexes.xml index e19206ce..171948ec 100644 --- a/docs/db/changelog/changesets/user-data-store/0.1.x/20230322-audit-indexes.xml +++ b/docs/db/changelog/changesets/user-data-store/0.1.x/20230322-audit-indexes.xml @@ -58,19 +58,7 @@ - - - - - - - Create a new index on audit_param(audit_log_id) - - - - - - + From fee2d3ea76fe0d3a5c0a936ef38ca741c6094ca4 Mon Sep 17 00:00:00 2001 From: Roman Strobl Date: Thu, 19 Sep 2024 14:25:08 +0800 Subject: [PATCH 2/2] Remove unnecessary indexes from DDL --- docs/sql/mssql/create-schema.sql | 5 ----- docs/sql/oracle/create-schema.sql | 4 ---- docs/sql/postgresql/create-schema.sql | 4 ---- 3 files changed, 13 deletions(-) diff --git a/docs/sql/mssql/create-schema.sql b/docs/sql/mssql/create-schema.sql index f3238903..56553378 100644 --- a/docs/sql/mssql/create-schema.sql +++ b/docs/sql/mssql/create-schema.sql @@ -48,11 +48,6 @@ GO CREATE NONCLUSTERED INDEX audit_log_type ON audit_log(audit_type); GO --- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::5::Lubos Racansky --- Create a new index on audit_param(audit_log_id) -CREATE NONCLUSTERED INDEX audit_param_log ON audit_param(audit_log_id); -GO - -- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::6::Lubos Racansky -- Create a new index on audit_param(timestamp_created) CREATE NONCLUSTERED INDEX audit_param_timestamp ON audit_param(timestamp_created); diff --git a/docs/sql/oracle/create-schema.sql b/docs/sql/oracle/create-schema.sql index 850b4469..7110e72e 100644 --- a/docs/sql/oracle/create-schema.sql +++ b/docs/sql/oracle/create-schema.sql @@ -38,10 +38,6 @@ CREATE INDEX audit_log_level ON audit_log(audit_level); -- Create a new index on audit_log(audit_type) CREATE INDEX audit_log_type ON audit_log(audit_type); --- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::5::Lubos Racansky --- Create a new index on audit_param(audit_log_id) -CREATE INDEX audit_param_log ON audit_param(audit_log_id); - -- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::6::Lubos Racansky -- Create a new index on audit_param(timestamp_created) CREATE INDEX audit_param_timestamp ON audit_param(timestamp_created); diff --git a/docs/sql/postgresql/create-schema.sql b/docs/sql/postgresql/create-schema.sql index 9a8d090e..66114875 100644 --- a/docs/sql/postgresql/create-schema.sql +++ b/docs/sql/postgresql/create-schema.sql @@ -38,10 +38,6 @@ CREATE INDEX audit_log_level ON audit_log(audit_level); -- Create a new index on audit_log(audit_type) CREATE INDEX audit_log_type ON audit_log(audit_type); --- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::5::Lubos Racansky --- Create a new index on audit_param(audit_log_id) -CREATE INDEX audit_param_log ON audit_param(audit_log_id); - -- Changeset user-data-store/0.1.x/20230322-audit-indexes.xml::6::Lubos Racansky -- Create a new index on audit_param(timestamp_created) CREATE INDEX audit_param_timestamp ON audit_param(timestamp_created);