Changeset 907 for trunk/Application
- Timestamp:
- Apr 16, 2021, 9:57:28 PM (4 years ago)
- Location:
- trunk/Application
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r901 r907 2152 2152 $Manager->Execute("INSERT INTO `PermissionOperation` (`Id`, `Module`, `Operation`, `Item`, `ItemId`) VALUES (NULL, '4', 'DownloadById', '', '0');"); 2153 2153 $Manager->Execute("INSERT INTO `PermissionGroupAssignment` (`Id`, `Group`, `AssignedGroup`, `AssignedOperation`) VALUES (NULL, '4', NULL, '53');"); 2154 } 2155 2156 function 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;'); 2154 2172 } 2155 2173 … … 2259 2277 882 => array('Revision' => 885, 'Function' => 'UpdateTo885'), 2260 2278 885 => array('Revision' => 901, 'Function' => 'UpdateTo901'), 2279 907 => array('Revision' => 907, 'Function' => 'UpdateTo907'), 2261 2280 ); 2262 2281 } -
trunk/Application/Version.php
r906 r907 1 1 <?php 2 2 3 $Revision = 90 6; // Subversion revision4 $DatabaseRevision = 90 1; // SQL structure revision5 $ReleaseTime = strtotime('2021-0 2-19');3 $Revision = 907; // Subversion revision 4 $DatabaseRevision = 907; // SQL structure revision 5 $ReleaseTime = strtotime('2021-03-24');
Note:
See TracChangeset
for help on using the changeset viewer.