Changeset 934 for trunk/Application


Ignore:
Timestamp:
May 11, 2022, 10:07:18 PM (2 years ago)
Author:
chronos
Message:
  • Added: System names for Permission groups.
Location:
trunk/Application
Files:
2 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  }
  • trunk/Application/Version.php

    r922 r934  
    11<?php
    22
    3 $Revision = 922; // Subversion revision
    4 $DatabaseRevision = 921; // SQL structure revision
    5 $ReleaseTime = strtotime('2022-02-28');
     3$Revision = 933; // Subversion revision
     4$DatabaseRevision = 933; // SQL structure revision
     5$ReleaseTime = strtotime('2022-05-11');
Note: See TracChangeset for help on using the changeset viewer.