Project

General

Profile

« Previous | Next » 

Revision 1890

Added by Dietmar over 11 years ago

  1. bugfix and update form module set version to 2.9.1
    ! update code module set version to 2.8.4
    ! update wysiwyg module set version to 2.9.1

View differences:

upgrade-script.php
691 691
    if($bDebugModus) {
692 692
        echo implode(PHP_EOL,$aDebugMessage);
693 693
    }
694
    echo '</div>';
695
}
694 696

  
695
	$aDebugMessage = array();
696
	/**********************************************************
697
     *   `confirm_code` VARCHAR(32) NOT NULL DEFAULT '',
698
     *   `confirm_timeout` INT(11) NOT NULL DEFAULT '0',
699
     */
700
	echo "<h4>Change field structure on table users</h4>";
701
	$table_name = TABLE_PREFIX.'users';
702
	$field_name = 'confirm_code';
703
	$description = "VARCHAR( 32 ) NOT NULL DEFAULT '' AFTER `password` ";
704
    add_modify_field_in_database($table_name,$field_name,$description);
705

  
706
	$table_name = TABLE_PREFIX.'users';
707
	$field_name = 'confirm_timeout';
708
	$description = "INT(11) NOT NULL DEFAULT '0' AFTER `confirm_code` ";
709
    add_modify_field_in_database($table_name,$field_name,$description);
710

  
711
    if($bDebugModus) {
712
        echo implode(PHP_EOL,$aDebugMessage);
713
    }
714

  
697
if(version_compare(WB_REVISION, REVISION, '<='))
698
{
715 699
    $aDebugMessage = array();
700
    echo '<h3>Step '.(++$stepID).': Updating structure in table users/groups</h3>';
716 701
	/**********************************************************
717
     * Modify Administrator on groups table
718
     */
702
	 * Modify Administrator on groups table
703
	 */
704
	echo '<div style="margin-left:2em;">';
719 705
	echo "<h4>Update group Administrator on table groups</h4>";
720 706
	$aDebugMessage[] = "<span>Modify Administrator on groups table</span>";
721 707
	$sModulePermissions = '';
......
741 727
    }
742 728
    echo '</div>';
743 729

  
744
}
730
    /**********************************************************
731
	$aDebugMessage = array();
732
	/**********************************************************
733
 *   `confirm_code` VARCHAR(32) NOT NULL DEFAULT '',
734
 *   `confirm_timeout` INT(11) NOT NULL DEFAULT '0',
735
 */
736
	echo '<div style="margin-left:2em;">';
737
	echo "<h4>Change field structure on table users</h4>";
738
	$table_name = TABLE_PREFIX.'users';
739
	$field_name = 'confirm_code';
740
	$description = "VARCHAR( 32 ) NOT NULL DEFAULT '' AFTER `password` ";
741
    add_modify_field_in_database($table_name,$field_name,$description);
745 742

  
746
if(version_compare(WB_REVISION, REVISION, '<'))
747
{
743
	$table_name = TABLE_PREFIX.'users';
744
	$field_name = 'confirm_timeout';
745
	$description = "INT(11) NOT NULL DEFAULT '0' AFTER `confirm_code` ";
746
    add_modify_field_in_database($table_name,$field_name,$description);
747

  
748
    if($bDebugModus) {
749
        echo implode(PHP_EOL,$aDebugMessage);
750
    }
751
    echo '</div>';
748 752
    $aDebugMessage = array();
749
    echo '<h3>Step '.(++$stepID).': Updating group_id in table users</h3>';
750
    /**********************************************************
753

  
754
   /**********************************************************
751 755
    * Updating group_id in table users
752 756
    */
753
        echo '<div style="margin-left:2em;">';
757
	echo '<div style="margin-left:2em;">';
758
	echo "<h4>Change field structure on table users</h4>";
754 759
        $aUsers = array();
755 760
		// Get existing values
756 761
        $sql  = 'SELECT * FROM `'.TABLE_PREFIX.'users` ' ;
......
784 789
                $aDebugMessage[] = $database->is_error()==false ? $sMessage." $OK<br />" : $sMessage." $FAIL!<br />";
785 790
        }
786 791
        unset($aUsers);
787

  
788 792
    $aDebugMessage[] = '</div>';
789 793

  
790 794
    if($bDebugModus) {
......
966 970
	 * $aModuleList list of proofed modules
967 971
	 */
968 972
//	$aModuleList = array('wysiwyg','news','form','captcha_control','output_filter');
969
	$aModuleList = array('wysiwyg','form');
973
	$aModuleList = array('wysiwyg','form','code');
970 974
	if(sizeof($aModuleList)) 
971 975
	{
972
	    echo '<h3>Step '.(++$stepID).': Upgrade proofed modules</h3>';
976
		echo '<h3>Step '.(++$stepID).': Upgrade proofed modules</h3>';
973 977
		foreach($aModuleList as $sModul) {
974 978
			if(file_exists(WB_PATH.'/modules/'.$sModul.'/upgrade.php')) {
975 979
				$currModulVersion = get_modul_version ($sModul, false);

Also available in: Unified diff