dangogh commented on a change in pull request #2719: Traffic Ops - Add 
tenant_id to admin user creation SQL TC-718
URL: https://github.com/apache/trafficcontrol/pull/2719#discussion_r211429921
 
 

 ##########
 File path: traffic_ops/install/bin/_postinstall
 ##########
 @@ -617,8 +617,9 @@ QUERY
     # Skip the insert if the admin 'username' is already there.
     my $hashed_passwd = hash_pass( $adminconf->{"password"} );
     my $insert_admin = <<"ADMIN";
-    insert into tm_user (username, role, local_passwd, confirm_local_passwd)
+    insert into tm_user (username, tenant_id, role, local_passwd, 
confirm_local_passwd)
                 values  ('$adminconf->{"username"}',
+                        (select id from tenant where name = 'unassigned'),
 
 Review comment:
   this is the admin -- should be in the root tenant,  not unassigned

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to