From 997a8f170c89629bf8eb1f0893941adb6368a948 Mon Sep 17 00:00:00 2001 From: MCatherine Date: Fri, 23 Aug 2024 15:48:23 -0700 Subject: [PATCH] fix: Add new user to local setup script (#1566) --- .../sample_V1002__add_local_user_cognito_id.sql | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/server/flyway/local_sql/sample_V1002__add_local_user_cognito_id.sql b/server/flyway/local_sql/sample_V1002__add_local_user_cognito_id.sql index 366361a3b..7d5f89a9c 100644 --- a/server/flyway/local_sql/sample_V1002__add_local_user_cognito_id.sql +++ b/server/flyway/local_sql/sample_V1002__add_local_user_cognito_id.sql @@ -7,8 +7,9 @@ -- convention (start with "V[#]__"). Recommend to rename this file locally and -- make sure to git ignore the file so it doesn't get checked in. The cognito -- user ids in this script have been intentionally mangled for security purposes. --- If it is just for personal use, you only need to add your own IDIR guid --- (available from the "users" tab in FAM DEV Cognito). +-- To setup your local enviornment, you need to update the cognito_user_id as well as the your own IDIR user_guid +-- (available from the "users" tab in FAM DEV Cognito). We use upper cases for user_guid, +-- because the real user_guid are all in upper cases. -- This script does not run in production (as it is in the "local_sql" -- directory instead of the "sql" directory). FYI other scripts can be added to @@ -42,12 +43,10 @@ INSERT INTO app_fam.fam_user ( user_name, user_type_code, cognito_user_id, + user_guid, create_user ) VALUES - -('JFERREIR','I','test-idir_278f48bd9mangledf7e618d@idir',CURRENT_USER), -('NSAGLION','I','test-idir_3f1414bd1mangled18a1293c40@idir',CURRENT_USER), -('CMENG','I','test-idir_a9888e8ac6a04mangled35df625bf@idir',CURRENT_USER), -('OLIBERCH','I','test-idir_b7e191fa11dmangled9df1854b71@idir',CURRENT_USER); - +('CMENG','I','test-idir_a9888e8ac6a04mangled35df625bf@idir','A9888E8AC6A04MANGLED00135DF625BF',CURRENT_USER), +('OLIBERCH','I','test-idir_b7e191fa11dmangled9df1854b71@idir','B7E191FA11MANLED818EC79DF1854B71',CURRENT_USER), +('CYU','I','test-idir_234d9cbe4373457famangledd26ab162@idir','234D9CBE4373457ANLEDE215D26AB162',CURRENT_USER); \ No newline at end of file