Changeset 849 for trunk/Application
- Timestamp:
- Jan 17, 2016, 6:19:06 PM (9 years ago)
- Location:
- trunk/Application
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r848 r849 2900 2900 } 2901 2901 2902 function UpdateTo849($Manager) 2903 { 2904 // Group item names 2905 $Manager->Execute('CREATE TABLE IF NOT EXISTS `Import` ( 2906 `Id` int(11) NOT NULL AUTO_INCREMENT, 2907 `ClientVersion` int(11) NOT NULL, 2908 `Time` datetime NOT NULL, 2909 `User` int(11) NOT NULL, 2910 PRIMARY KEY (`Id`), 2911 KEY (`User`), 2912 KEY (`ClientVersion`) 2913 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'); 2914 $Manager->Execute('ALTER TABLE `Import` ADD FOREIGN KEY (`ClientVersion`) REFERENCES `ClientVersion`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 2915 $Manager->Execute('ALTER TABLE `Import` ADD FOREIGN KEY (`User`) REFERENCES `User`(`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 2916 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ImportGroup` ( 2917 `Id` int(11) NOT NULL AUTO_INCREMENT, 2918 `Import` int(11) NOT NULL, 2919 `Group` int(11) NOT NULL, 2920 PRIMARY KEY (`Id`), 2921 KEY (`Import`), 2922 KEY (`Group`) 2923 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'); 2924 $Manager->Execute('ALTER TABLE `ImportGroup` ADD FOREIGN KEY (`Import`) REFERENCES `Import`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 2925 $Manager->Execute('ALTER TABLE `ImportGroup` ADD FOREIGN KEY (`Group`) REFERENCES `Group`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 2926 } 2927 2928 2902 2929 $Updates = array( 2903 2930 498 => array('Revision' => 506, 'Function' => 'UpdateTo506'), … … 2930 2957 811 => array('Revision' => 846, 'Function' => 'UpdateTo846'), 2931 2958 846 => array('Revision' => 848, 'Function' => 'UpdateTo848'), 2959 848 => array('Revision' => 849, 'Function' => 'UpdateTo849'), 2932 2960 ); -
trunk/Application/Version.php
r848 r849 6 6 // and system will need database update. 7 7 8 $Revision = 84 8; // Subversion revision9 $DatabaseRevision = 84 8; // Database structure revision8 $Revision = 849; // Subversion revision 9 $DatabaseRevision = 849; // Database structure revision 10 10 $ReleaseTime = '2016-01-17';
Note:
See TracChangeset
for help on using the changeset viewer.