Ignore:
Timestamp:
Apr 16, 2021, 9:57:28 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r901 r907  
    21522152  $Manager->Execute("INSERT INTO `PermissionOperation` (`Id`, `Module`, `Operation`, `Item`, `ItemId`) VALUES (NULL, '4', 'DownloadById', '', '0');");
    21532153  $Manager->Execute("INSERT INTO `PermissionGroupAssignment` (`Id`, `Group`, `AssignedGroup`, `AssignedOperation`) VALUES (NULL, '4', NULL, '53');");
     2154}
     2155
     2156function UpdateTo907(UpdateManager $Manager): void
     2157{
     2158  $Manager->Execute('CREATE TABLE `AddressPlace` (
     2159  `Id` int(11) NOT NULL,
     2160  `Town` varchar(255) NOT NULL,
     2161  `Street` varchar(255) NOT NULL,
     2162  `HouseNumber` int(11) NOT NULL,
     2163  `HouseNumberType` int(11) NOT NULL,
     2164  `Psc` int(11) NOT NULL,
     2165  `RuianCode` int(11) NOT NULL
     2166) ENGINE=InnoDB DEFAULT CHARSET=utf8;');
     2167  $Manager->Execute('ALTER TABLE `AddressPlace` ADD PRIMARY KEY (`Id`);');
     2168  $Manager->Execute('ALTER TABLE `AddressPlace` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;');
     2169  $Manager->Execute('ALTER TABLE `Member` ADD `AddressPlace` INT NULL AFTER `Subject`;');
     2170  $Manager->Execute('ALTER TABLE `Member` ADD KEY (`AddressPlace`);');
     2171  $Manager->Execute('ALTER TABLE `Member` ADD FOREIGN KEY (`AddressPlace`) REFERENCES `AddressPlace`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
    21542172}
    21552173
     
    22592277      882 => array('Revision' => 885, 'Function' => 'UpdateTo885'),
    22602278      885 => array('Revision' => 901, 'Function' => 'UpdateTo901'),
     2279      907 => array('Revision' => 907, 'Function' => 'UpdateTo907'),
    22612280    );
    22622281  }
Note: See TracChangeset for help on using the changeset viewer.