From f53d65eacd72167744d864361e1ee7a29aa247e3 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Thu, 25 May 2023 14:49:13 +0000 Subject: [PATCH] refact(sql): Rename migrations to avoid number conflicts --- .../schema/migrations/oss/postgres/64/01_ssh_targets.up.sql | 6 +++--- .../postgres/{70 => 71}/01_add_session_connection_uq.up.sql | 0 .../oss/postgres/{70 => 71}/02_plugins_restructure.up.sql | 0 .../oss/postgres/{70 => 71}/03_storage_bucket.up.sql | 0 .../oss/postgres/{70 => 71}/04_history_domain.up.sql | 0 .../oss/postgres/{70 => 71}/05_history_triggers.up.sql | 0 .../oss/postgres/{70 => 71}/06_iam_history.up.sql | 0 .../migrations/oss/postgres/{70 => 71}/07_targets.up.sql | 0 .../oss/postgres/{70 => 71}/08_target_history.up.sql | 0 .../oss/postgres/{70 => 71}/09_host_catalog_history.up.sql | 0 .../oss/postgres/{70 => 71}/10_host_history.up.sql | 0 .../oss/postgres/{70 => 71}/11_session_recording.up.sql | 0 .../postgres/{70 => 71}/12_session_recording_views.up.sql | 0 .../postgres/{70 => 71}/13_static_credential_history.up.sql | 0 .../{70 => 71}/14_recording_static_credential.up.sql | 0 .../{70 => 71}/15_dynamic_credential_history.up.sql | 0 .../{70 => 71}/16_recording_dynamic_credential.up.sql | 0 .../postgres/{70 => 71}/17_credential_history_views.up.sql | 0 18 files changed, 3 insertions(+), 3 deletions(-) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/01_add_session_connection_uq.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/02_plugins_restructure.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/03_storage_bucket.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/04_history_domain.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/05_history_triggers.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/06_iam_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/07_targets.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/08_target_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/09_host_catalog_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/10_host_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/11_session_recording.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/12_session_recording_views.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/13_static_credential_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/14_recording_static_credential.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/15_dynamic_credential_history.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/16_recording_dynamic_credential.up.sql (100%) rename internal/db/schema/migrations/oss/postgres/{70 => 71}/17_credential_history_views.up.sql (100%) diff --git a/internal/db/schema/migrations/oss/postgres/64/01_ssh_targets.up.sql b/internal/db/schema/migrations/oss/postgres/64/01_ssh_targets.up.sql index 37fc815cc..de9df564a 100644 --- a/internal/db/schema/migrations/oss/postgres/64/01_ssh_targets.up.sql +++ b/internal/db/schema/migrations/oss/postgres/64/01_ssh_targets.up.sql @@ -79,7 +79,7 @@ begin; drop view if exists whx_credential_dimension_source; drop view if exists target_all_subtypes; - -- Replaced in oss/70/09_targets.up.sql + -- Replaced in oss/71/09_targets.up.sql create view target_all_subtypes as select public_id, @@ -116,7 +116,7 @@ begin; from target_ssh; - -- Replaced in oss/70/09_targets.up.sql + -- Replaced in oss/71/09_targets.up.sql create view whx_host_dimension_source as with host_sources ( @@ -249,7 +249,7 @@ begin; -- The whx_credential_dimension_source view shows the current values in the -- operational tables of the credential dimension. - -- Replaced in oss/70/09_targets.up.sql + -- Replaced in oss/71/09_targets.up.sql create view whx_credential_dimension_source as with vault_generic_library as ( select vcl.public_id as public_id, diff --git a/internal/db/schema/migrations/oss/postgres/70/01_add_session_connection_uq.up.sql b/internal/db/schema/migrations/oss/postgres/71/01_add_session_connection_uq.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/01_add_session_connection_uq.up.sql rename to internal/db/schema/migrations/oss/postgres/71/01_add_session_connection_uq.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/02_plugins_restructure.up.sql b/internal/db/schema/migrations/oss/postgres/71/02_plugins_restructure.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/02_plugins_restructure.up.sql rename to internal/db/schema/migrations/oss/postgres/71/02_plugins_restructure.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/03_storage_bucket.up.sql b/internal/db/schema/migrations/oss/postgres/71/03_storage_bucket.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/03_storage_bucket.up.sql rename to internal/db/schema/migrations/oss/postgres/71/03_storage_bucket.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/04_history_domain.up.sql b/internal/db/schema/migrations/oss/postgres/71/04_history_domain.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/04_history_domain.up.sql rename to internal/db/schema/migrations/oss/postgres/71/04_history_domain.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/05_history_triggers.up.sql b/internal/db/schema/migrations/oss/postgres/71/05_history_triggers.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/05_history_triggers.up.sql rename to internal/db/schema/migrations/oss/postgres/71/05_history_triggers.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/06_iam_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/06_iam_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/06_iam_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/06_iam_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/07_targets.up.sql b/internal/db/schema/migrations/oss/postgres/71/07_targets.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/07_targets.up.sql rename to internal/db/schema/migrations/oss/postgres/71/07_targets.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/08_target_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/08_target_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/08_target_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/08_target_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/09_host_catalog_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/09_host_catalog_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/09_host_catalog_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/09_host_catalog_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/10_host_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/10_host_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/10_host_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/10_host_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/11_session_recording.up.sql b/internal/db/schema/migrations/oss/postgres/71/11_session_recording.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/11_session_recording.up.sql rename to internal/db/schema/migrations/oss/postgres/71/11_session_recording.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/12_session_recording_views.up.sql b/internal/db/schema/migrations/oss/postgres/71/12_session_recording_views.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/12_session_recording_views.up.sql rename to internal/db/schema/migrations/oss/postgres/71/12_session_recording_views.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/13_static_credential_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/13_static_credential_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/13_static_credential_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/13_static_credential_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/14_recording_static_credential.up.sql b/internal/db/schema/migrations/oss/postgres/71/14_recording_static_credential.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/14_recording_static_credential.up.sql rename to internal/db/schema/migrations/oss/postgres/71/14_recording_static_credential.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/15_dynamic_credential_history.up.sql b/internal/db/schema/migrations/oss/postgres/71/15_dynamic_credential_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/15_dynamic_credential_history.up.sql rename to internal/db/schema/migrations/oss/postgres/71/15_dynamic_credential_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/16_recording_dynamic_credential.up.sql b/internal/db/schema/migrations/oss/postgres/71/16_recording_dynamic_credential.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/16_recording_dynamic_credential.up.sql rename to internal/db/schema/migrations/oss/postgres/71/16_recording_dynamic_credential.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/17_credential_history_views.up.sql b/internal/db/schema/migrations/oss/postgres/71/17_credential_history_views.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/17_credential_history_views.up.sql rename to internal/db/schema/migrations/oss/postgres/71/17_credential_history_views.up.sql