Skip to content

Commit 058af63

Browse files
authored
πŸ› Add default user_id & tenant_id to docker
πŸ› Add default user_id & tenant_id to docker
2 parents 4cb9183 + 886bdd8 commit 058af63

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

β€Ždocker/init.sqlβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,4 +1011,9 @@ INSERT INTO nexent.role_permission_t (role_permission_id, user_role, permission_
10111011
(208, 'SPEED', 'RESOURCE', 'GROUP', 'READ'),
10121012
(209, 'SPEED', 'RESOURCE', 'GROUP', 'UPDATE'),
10131013
(210, 'SPEED', 'RESOURCE', 'GROUP', 'DELETE')
1014-
ON CONFLICT (role_permission_id) DO NOTHING;
1014+
ON CONFLICT (role_permission_id) DO NOTHING;
1015+
1016+
-- Insert SPEED role user into user_tenant_t table if not exists
1017+
INSERT INTO nexent.user_tenant_t (user_id, tenant_id, user_role, user_email, created_by, updated_by)
1018+
VALUES ('user_id', 'tenant_id', 'SPEED', NULL, 'system', 'system')
1019+
ON CONFLICT (user_id, tenant_id) DO NOTHING;

β€Ždocker/sql/v1.7.9.2_1226_add_invitation_and_group_system.sqlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ INSERT INTO nexent.role_permission_t (role_permission_id, user_role, permission_
357357
(208, 'SPEED', 'RESOURCE', 'GROUP', 'READ'),
358358
(209, 'SPEED', 'RESOURCE', 'GROUP', 'UPDATE'),
359359
(210, 'SPEED', 'RESOURCE', 'GROUP', 'DELETE')
360-
ON CONFLICT (role_permission_id) DO NOTHING;
360+
ON CONFLICT (role_permission_id) DO NOTHING;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
INSERT INTO nexent.user_tenant_t (user_id, tenant_id, user_role, user_email, created_by, updated_by)
2+
VALUES ('user_id', 'tenant_id', 'SPEED', NULL, 'system', 'system')
3+
ON CONFLICT (user_id, tenant_id) DO NOTHING;

0 commit comments

Comments
Β (0)