[geeklog-cvs] Geeklog-1.x/sql/updates mysql_1.4.1_to_1.4.2.php, 1.25, 1.26

Oliver ospiess at qs1489.pair.com
Mon Sep 10 21:41:32 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/sql/updates
In directory qs1489.pair.com:/tmp/cvs-serv24849

Modified Files:
	mysql_1.4.1_to_1.4.2.php 
Log Message:
fixing poll answer numbers

Index: mysql_1.4.1_to_1.4.2.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/sql/updates/mysql_1.4.1_to_1.4.2.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** mysql_1.4.1_to_1.4.2.php	3 Sep 2007 02:25:19 -0000	1.25
--- mysql_1.4.1_to_1.4.2.php	11 Sep 2007 01:41:30 -0000	1.26
***************
*** 34,42 ****
        fieldset int(11) default NULL
      ) TYPE=MyISAM");
!     
      require_once($_CONF['path_system'] . 'classes/config.class.php');
!     
      $c = config::create();
!     
      $c->add('path_html','','text',0,1,NULL,10,TRUE);
      $c->add('site_url','','text',0,0,NULL,20,TRUE);
--- 34,42 ----
        fieldset int(11) default NULL
      ) TYPE=MyISAM");
! 
      require_once($_CONF['path_system'] . 'classes/config.class.php');
! 
      $c = config::create();
! 
      $c->add('path_html','','text',0,1,NULL,10,TRUE);
      $c->add('site_url','','text',0,0,NULL,20,TRUE);
***************
*** 248,255 ****
          $P_SQL[] = "ALTER TABLE `{$_TABLES['pollvoters']}` CHANGE `qid` `pid` VARCHAR( 20 ) NOT NULL";
          $P_SQL[] = "CREATE TABLE {$_TABLES['pollquestions']} (
!               qid mediumint(9) NOT NULL DEFAULT '0',
                pid varchar(20) NOT NULL,
                question varchar(255) NOT NULL,
!               KEY `qid` (`qid`)
              ) TYPE=MyISAM
              ";
--- 248,255 ----
          $P_SQL[] = "ALTER TABLE `{$_TABLES['pollvoters']}` CHANGE `qid` `pid` VARCHAR( 20 ) NOT NULL";
          $P_SQL[] = "CREATE TABLE {$_TABLES['pollquestions']} (
!               qid mediumint(9) NOT NULL,
                pid varchar(20) NOT NULL,
                question varchar(255) NOT NULL,
!               PRIMARY KEY (qid, pid)
              ) TYPE=MyISAM
              ";




More information about the geeklog-cvs mailing list