3 my $groups = RT::Groups->new( RT->SystemUser );
5 FIELD => 'Name', OPERATOR => '!=', VALUE => 'main.Type', QUOTEVALUE => 0
9 VALUE => 'SystemInternal',
12 $groups->RowsPerPage(1);
13 if ( $groups->Next ) {
14 my $dbh = $RT::Handle->dbh;
15 my $db_type = RT->Config->Get('DatabaseType');
16 if ( $db_type eq 'Oracle' || $db_type eq 'Pg' ) {
18 "UPDATE Groups SET Name = Type
19 WHERE LOWER(Domain) IN ('aclequivalence', 'systeminternal')
20 OR LOWER(Domain) LIKE '%-role'"
24 "UPDATE Groups SET Name = Type
25 WHERE Domain IN ('ACLEquivalence', 'SystemInternal')
26 OR Domain LIKE '%-Role'"