Changeset 907 for trunk/Application/UpdateTrace.php
- Timestamp:
- Apr 16, 2021, 9:57:28 PM (4 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.