From 418a569084fa505971f982b6abbccaeefa3be512 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Wed, 17 Jan 2024 14:31:15 +0000 Subject: [PATCH] Rename `controllers.admin_user` column to `admin_identity_name` Signed-off-by: Babak K. Shandiz --- internal/dbmodel/sql/postgres/1_6.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/dbmodel/sql/postgres/1_6.sql b/internal/dbmodel/sql/postgres/1_6.sql index c1b7bc32a..b93ff7530 100644 --- a/internal/dbmodel/sql/postgres/1_6.sql +++ b/internal/dbmodel/sql/postgres/1_6.sql @@ -14,6 +14,7 @@ ALTER TABLE IF EXISTS models RENAME COLUMN owner_username TO owner_identity_name ALTER TABLE IF EXISTS application_offer_connections RENAME COLUMN username TO identity_name; ALTER TABLE IF EXISTS user_model_defaults RENAME TO identity_model_defaults; ALTER TABLE IF EXISTS identity_model_defaults RENAME COLUMN username TO identity_name; +ALTER TABLE IF EXISTS controllers RENAME COLUMN admin_user TO admin_identity_name; ALTER TABLE IF EXISTS audit_log RENAME COLUMN user_tag TO identity_tag; -- Renaming indexes: @@ -27,9 +28,6 @@ ALTER INDEX IF EXISTS cloud_credentials_cloud_name_owner_username_name_key RENAM ALTER INDEX IF EXISTS cloud_defaults_username_cloud_id_region_key RENAME TO cloud_defaults_identity_name_cloud_id_region_key; ALTER INDEX IF EXISTS idx_audit_log_user_tag RENAME TO idx_audit_log_identity_tag; --- TODO (CSS-6701): Do we need to rename these instances as well? --- - ALTER TABLE IF EXISTS controllers RENAME COLUMN admin_user TO admin_identity_name; - -- We don't need to rename columns in these tables, because they're already -- dropped in an earlier migration: -- - user_application_offer_access