Ignore:
Timestamp:
10/08/13 16:20:46 (11 years ago)
Author:
douglas
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final 2.5.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/phpgwapi/setup/tables_update.inc.php

    r7917 r8232  
    2020                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0.008'; 
    2121                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
    22  
    2322        } 
    2423         
     
    2827                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.0.pre-alpha'; 
    2928                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
    30  
    3129        } 
    3230 
     
    176174                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
    177175        } 
    178     $test[] = '2.4.2';  
    179     function phpgwapi_upgrade2_4_2()  
    180     {  
    181             $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.0';  
    182             return $GLOBALS['setup_info']['phpgwapi']['currentver'];  
    183     }  
    184   
    185     $test[] = '2.5.0';  
    186         function phpgwapi_upgrade2_5_0()  
    187         {  
    188                 $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1';  
    189                 global $setup_info,$phpgw_setup;  
    190                 $phpgw_setup->oProc->query("ALTER TABLE phpgw_access_log ALTER COLUMN ip TYPE character varying(255) ");  
    191   
    192                 return $GLOBALS['setup_info']['phpgwapi']['currentver'];  
    193         }  
    194       
    195  
     176    $test[] = '2.4.2'; 
     177    function phpgwapi_upgrade2_4_2() 
     178    { 
     179        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.0'; 
     180        return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
     181    } 
     182 
     183    $test[] = '2.5.0'; 
     184        function phpgwapi_upgrade2_5_0() 
     185        { 
     186        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1'; 
     187        global $setup_info,$phpgw_setup; 
     188        $phpgw_setup->oProc->query("ALTER TABLE phpgw_access_log ALTER COLUMN ip TYPE character varying(255) "); 
     189 
     190        return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
     191        } 
     192 
     193    $test[] = '2.5.1'; 
     194    function phpgwapi_upgrade2_5_1() 
     195    { 
     196        global $phpgw_setup; 
     197 
     198        $phpgw_setup->oProc->query( 'select * from information_schema.tables where table_name= \'phpgw_vfs\''); 
     199        if( !$phpgw_setup->oProc->next_record() ) 
     200        { 
     201            $phpgw_setup->oProc->CreateTable('phpgw_vfs', array( 
     202                'fd' => array( 
     203                    'file_id' => array('type' => 'auto','nullable' => False), 
     204                    'owner_id' => array('type' => 'int','precision' => '4','nullable' => False), 
     205                    'createdby_id' => array('type' => 'int','precision' => '4'), 
     206                    'modifiedby_id' => array('type' => 'int','precision' => '4'), 
     207                    'created' => array('type' => 'timestamp','nullable' => False,'default' => '1970-01-01'), 
     208                    'modified' => array('type' => 'timestamp'), 
     209                    'size' => array('type' => 'int','precision' => '4'), 
     210                    'mime_type' => array('type' => 'varchar','precision' => '64'), 
     211                    'deleteable' => array('type' => 'char','precision' => '1','default' => 'Y'), 
     212                    'comment' => array('type' => 'varchar','precision' => '255'), 
     213                    'app' => array('type' => 'varchar','precision' => '25'), 
     214                    'directory' => array('type' => 'varchar','precision' => '255'), 
     215                    'name' => array('type' => 'varchar','precision' => '128','nullable' => False), 
     216                    'link_directory' => array('type' => 'varchar','precision' => '255'), 
     217                    'link_name' => array('type' => 'varchar','precision' => '128'), 
     218                    'version' => array('type' => 'varchar','precision' => '30','nullable' => False,'default' => '0.0.0.0'), 
     219                    'content' => array('type' => 'longtext') 
     220                ) 
     221            )); 
     222        } 
     223 
     224        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1.0'; 
     225        return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
     226    } 
    196227?> 
Note: See TracChangeset for help on using the changeset viewer.