Changeset 748 for trunk/admin/UpdateTrace.php
- Timestamp:
- Jan 12, 2014, 10:50:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/UpdateTrace.php
r732 r748 2732 2732 2733 2733 2734 function UpdateTo748($Manager) 2735 { 2736 2737 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ForumText` ( 2738 `ID` int(11) NOT NULL AUTO_INCREMENT, 2739 `User` int(11) DEFAULT NULL, 2740 `UserName` text NOT NULL, 2741 `Text` text NOT NULL, 2742 `Date` datetime NOT NULL, 2743 `IP` text NOT NULL, 2744 `Thread` int(11) DEFAULT NULL, 2745 PRIMARY KEY (`ID`), 2746 KEY `date` (`Date`), 2747 KEY `User` (`User`), 2748 KEY `Thread` (`Thread`) 2749 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 2750 '); 2751 2752 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ForumThread` ( 2753 `ID` int(11) NOT NULL AUTO_INCREMENT, 2754 `User` int(11) DEFAULT NULL, 2755 `UserName` text NOT NULL, 2756 `Text` text NOT NULL, 2757 `Date` datetime NOT NULL, 2758 `IP` text NOT NULL, 2759 PRIMARY KEY (`ID`), 2760 KEY `date` (`Date`), 2761 KEY `User` (`User`) 2762 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 2763 '); 2764 2765 $Manager->Execute('ALTER TABLE `ForumText` 2766 ADD CONSTRAINT `ForumText_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);'); 2767 $Manager->Execute('ALTER TABLE `ForumText` 2768 ADD CONSTRAINT `ForumThread_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);'); 2769 $Manager->Execute('ALTER TABLE `ForumText` 2770 ADD CONSTRAINT `ForumText_ibfk_2` FOREIGN KEY (`Thread`) REFERENCES `ForumThread` (`ID`);'); 2771 2772 } 2773 2774 2734 2775 $Updates = array( 2735 2776 498 => array('Revision' => 506, 'Function' => 'UpdateTo506'), … … 2756 2797 725 => array('Revision' => 731 , 'Function' => 'UpdateTo731'), 2757 2798 731 => array('Revision' => 732 , 'Function' => 'UpdateTo732'), 2799 732 => array('Revision' => 748 , 'Function' => 'UpdateTo748'), 2758 2800 );
Note:
See TracChangeset
for help on using the changeset viewer.