Ignore:
Timestamp:
May 11, 2022, 10:07:18 PM (3 years ago)
Author:
chronos
Message:
  • Added: System names for Permission groups.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r921 r934  
    22072207        "VALUES (NULL , 'Fyzické adresy', ".$DbRow['Id'].", '".$ActionId."', '1');");
    22082208  }
     2209}
     2210
     2211function UpdateTo933(UpdateManager $Manager): void
     2212{
     2213  $Manager->Execute('ALTER TABLE `PermissionGroup` ADD `SysName` VARCHAR(255) NULL DEFAULT "" AFTER `Description`;');
     2214  $Manager->Execute('UPDATE `PermissionGroup` SET `SysName`="admins" WHERE `Description`="Systémoví administrátoři"');
     2215  $Manager->Execute('UPDATE `PermissionGroup` SET `SysName`="network-admins" WHERE `Description`="Správci sítě"');
     2216  $Manager->Execute('UPDATE `PermissionGroup` SET `SysName`="registered-users" WHERE `Description`="Registrovaní uživatelé"');
     2217  $Manager->Execute('UPDATE `PermissionGroup` SET `SysName`="other-users" WHERE `Description`="Ostatní"');
     2218  $Manager->Execute('UPDATE `PermissionGroup` SET `SysName`="customers" WHERE `Description`="Zákazníci"');
    22092219}
    22102220
     
    23172327      907 => array('Revision' => 911, 'Function' => 'UpdateTo911'),
    23182328      911 => array('Revision' => 921, 'Function' => 'UpdateTo921'),
     2329      921 => array('Revision' => 933, 'Function' => 'UpdateTo933'),
    23192330    );
    23202331  }
Note: See TracChangeset for help on using the changeset viewer.