Changeset 7383 for branches/2.4


Ignore:
Timestamp:
10/09/12 15:57:26 (12 years ago)
Author:
eduardow
Message:

Ticket #3149 - Problema com anexos na Agenda com types muito grande

Location:
branches/2.4/expressoCalendar/setup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoCalendar/setup/tables_current.inc.php

    r7228 r7383  
    2929                                'id' => array('type' => 'auto','nullable' => False), 
    3030                                'source' => array('type' => 'blob','nullable' => False), 
    31                                 'type' => array('type' => 'varchar','precision' => '50','nullable' => False), 
     31                                'type' => array('type' => 'varchar','precision' => '255','nullable' => False), 
    3232                                'name' => array('type' => 'varchar','precision' => '255','nullable' => False), 
    3333                                'size' => array('type' => 'varchar','precision' => '255','nullable' => False), 
  • branches/2.4/expressoCalendar/setup/tables_update.inc.php

    r7228 r7383  
    182182        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
    183183    }; 
    184          
     184     
     185    $test[] = '1.009';  
     186    function expressoCalendar_upgrade1_009() {  
     187        $oProc = $GLOBALS['phpgw_setup']->oProc;  
     188  
     189        $oProc->query("ALTER TABLE attachment ALTER COLUMN type TYPE character varying(255);");  
     190        $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.010';  
     191        return $GLOBALS['setup_info']['expressoCalendar']['currentver'];  
     192    };     
     193 
    185194?> 
Note: See TracChangeset for help on using the changeset viewer.