Skip to content

Commit 15fbe3c

Browse files
authored
Feature/1444 fix demo data (#1505)
* add proper data for pitc in demo * restore dev properties * update condition for demo user check
1 parent 5d32799 commit 15fbe3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/main/resources/db/data-migration-demo/afterMigrate__0_1_initialData_pitc.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DO
66
$$
77
BEGIN
88
-- Check the session user (the user Flyway connects as)
9-
IF session_user = 'pitc' THEN
9+
IF session_user like '%pitc' THEN
1010
-- Condition met: User IS 'pitc'
1111
RAISE NOTICE 'User validation successful (User is pitc). Proceeding with pitc-specific operations...';
1212

backend/src/main/resources/db/data-migration-demo/afterMigrate__0_2_initialData_acme.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
DO
22
$$
33
BEGIN
4-
IF session_user = 'acme' THEN
5-
RAISE NOTICE 'User validation successful (User is pitc). Proceeding with pitc-specific operations...';
4+
IF session_user like '%acme' THEN
5+
RAISE NOTICE 'User validation successful (User is acme). Proceeding with acme-specific operations...';
66

77
INSERT INTO okr_acme.person VALUES (1, '[email protected]', 'Paco', 'Eggimann', 1, true);
88
INSERT INTO okr_acme.person VALUES (3, '[email protected]', 'Jean-Claude', 'Brantschen', 1, true);

0 commit comments

Comments
 (0)