Changeset 7378


Ignore:
Timestamp:
10/09/12 12:29:13 (7 years ago)
Author:
acoutinho
Message:

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

Location:
trunk/expressoCalendar/setup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoCalendar/setup/tables_current.inc.php

    r6996 r7378  
    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), 
  • trunk/expressoCalendar/setup/tables_update.inc.php

    r7164 r7378  
    182182        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
    183183    }; 
     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    }; 
    184193         
    185194?> 
Note: See TracChangeset for help on using the changeset viewer.