From 73b710cd06ac9e6c07d96278e11ac7d07044d517 Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Thu, 11 May 2023 10:11:51 -0400 Subject: [PATCH] refactor(sql): Rename session recording migration This renames the migration with the session recording table to come after the history table migrations. This allows the session recording table to have foreign key references to the history tables without using alter table statements. --- .../oss/postgres/70/{09_targets.up.sql => 07_targets.up.sql} | 0 .../70/{09_target_history.up.sql => 08_target_history.up.sql} | 0 ...host_catalog_history.up.sql => 09_host_catalog_history.up.sql} | 0 .../70/{11_host_history.up.sql => 10_host_history.up.sql} | 0 .../{07_session_recording.up.sql => 11_session_recording.up.sql} | 0 ...n_recording_views.up.sql => 12_session_recording_views.up.sql} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename internal/db/schema/migrations/oss/postgres/70/{09_targets.up.sql => 07_targets.up.sql} (100%) rename internal/db/schema/migrations/oss/postgres/70/{09_target_history.up.sql => 08_target_history.up.sql} (100%) rename internal/db/schema/migrations/oss/postgres/70/{10_host_catalog_history.up.sql => 09_host_catalog_history.up.sql} (100%) rename internal/db/schema/migrations/oss/postgres/70/{11_host_history.up.sql => 10_host_history.up.sql} (100%) rename internal/db/schema/migrations/oss/postgres/70/{07_session_recording.up.sql => 11_session_recording.up.sql} (100%) rename internal/db/schema/migrations/oss/postgres/70/{08_session_recording_views.up.sql => 12_session_recording_views.up.sql} (100%) diff --git a/internal/db/schema/migrations/oss/postgres/70/09_targets.up.sql b/internal/db/schema/migrations/oss/postgres/70/07_targets.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/09_targets.up.sql rename to internal/db/schema/migrations/oss/postgres/70/07_targets.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/09_target_history.up.sql b/internal/db/schema/migrations/oss/postgres/70/08_target_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/09_target_history.up.sql rename to internal/db/schema/migrations/oss/postgres/70/08_target_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/10_host_catalog_history.up.sql b/internal/db/schema/migrations/oss/postgres/70/09_host_catalog_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/10_host_catalog_history.up.sql rename to internal/db/schema/migrations/oss/postgres/70/09_host_catalog_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/11_host_history.up.sql b/internal/db/schema/migrations/oss/postgres/70/10_host_history.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/11_host_history.up.sql rename to internal/db/schema/migrations/oss/postgres/70/10_host_history.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/07_session_recording.up.sql b/internal/db/schema/migrations/oss/postgres/70/11_session_recording.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/07_session_recording.up.sql rename to internal/db/schema/migrations/oss/postgres/70/11_session_recording.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/70/08_session_recording_views.up.sql b/internal/db/schema/migrations/oss/postgres/70/12_session_recording_views.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/70/08_session_recording_views.up.sql rename to internal/db/schema/migrations/oss/postgres/70/12_session_recording_views.up.sql