Changeset 9026


Ignore:
Timestamp:
Feb 1, 2011, 12:27:03 AM (10 years ago)
Author:
grum
Message:

release 3.0.1
bug:2165

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_install.class.inc.php

    r9025 r9026  
    188188          $this->config['newInstall']='n';
    189189          $this->updateFrom_020200();
     190        case '03.00.00':
     191          $this->config['newInstall']='n';
     192          $this->updateFrom_030000();
    190193        default:
    191194          /*
     
    299302      pwg_query($sql);
    300303
    301 /*
    302       $users=new GPCUsers();
    303       $uList=array();
    304       foreach($users->getList() as $user)
    305       {
    306         $uList[]=$user['id'];
    307       }
    308       $sql="UPDATE `".$this->tables['urls']."`
    309             SET accessUsers='".pwg_db_real_escape_string(implode(',', $uList))."';";
    310       pwg_query($sql);
    311 */
    312304      if(isset($this->config['amm_sections_items']))
    313305      {
     
    324316      }
    325317    }
     318
     319
     320
     321    /**
     322     * update the database from the release 3.0.0
     323     *
     324     * - add auto increment on personnalised_lang table
     325     */
     326    private function updateFrom_030000()
     327    {
     328      global $user;
     329
     330      $sql="ALTER TABLE `".$this->tables['personalised']."` MODIFY COLUMN `id` INTEGER  NOT NULL AUTO_INCREMENT;";
     331      pwg_query($sql);
     332    }
     333
     334
     335
    326336
    327337    /**
Note: See TracChangeset for help on using the changeset viewer.