Ignore:
Timestamp:
Jan 12, 2014, 10:50:33 PM (11 years ago)
Author:
maron
Message:
  • Added: Simple forum for Translators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r732 r748  
    27322732
    27332733
     2734function 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
    27342775$Updates = array(
    27352776        498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    27562797        725 => array('Revision' => 731 , 'Function' => 'UpdateTo731'),
    27572798        731 => array('Revision' => 732 , 'Function' => 'UpdateTo732'),
     2799        732 => array('Revision' => 748 , 'Function' => 'UpdateTo748'),
    27582800);
Note: See TracChangeset for help on using the changeset viewer.