3 my $groups = RT::Groups->new( RT->SystemUser );
5 FIELD => 'Name', OPERATOR => '!=', VALUE => 'main.Type', QUOTEVALUE => 0
8 FIELD => 'Name', OPERATOR => 'IS', VALUE => 'NULL',
12 VALUE => 'SystemInternal',
15 $groups->RowsPerPage(1);
16 if ( $groups->Next ) {
17 my $dbh = $RT::Handle->dbh;
18 my $db_type = RT->Config->Get('DatabaseType');
19 if ( $db_type eq 'Oracle' || $db_type eq 'Pg' ) {
21 "UPDATE Groups SET Name = Type
22 WHERE LOWER(Domain) IN ('aclequivalence', 'systeminternal')
23 OR LOWER(Domain) LIKE '%-role'"
27 "UPDATE Groups SET Name = Type
28 WHERE Domain IN ('ACLEquivalence', 'SystemInternal')
29 OR Domain LIKE '%-Role'"