Ignore:
Timestamp:
02/24/12 15:09:26 (12 years ago)
Author:
douglasz
Message:

Ticket #2486 - Atualizado o arquivo setup correções no salvamento de sinalizadores

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/setup/tables_update.inc.php

    r5311 r5547  
    141141            return $setup_info['expressoMail1_2']['currentver'];  
    142142        } 
     143        $test[] = '2.4.0'; 
     144        function expressoMail1_2_upgrade2_4_0() { 
     145        $oProc = $GLOBALS['phpgw_setup']->oProc;             
     146            $oProc->CreateTable('expressomail_label',array( 
     147                                'fd' => array( 
     148                                        'id' => array('type' => 'auto','nullable' => False), 
     149                                        'user_id' => array('type' => 'int', 'precision' => '8','nullable' => true), 
     150                                        'name' => array('type' => 'varchar','precision' => '255','nullable' => true), 
     151                                        'border_color' => array('type' => 'varchar','precision' => '7','nullable' => true), 
     152                                        'background_color' => array('type' => 'varchar','precision' => '7','nullable' => true), 
     153                                        'font_color' => array('type' => 'varchar','precision' => '7','nullable' => true) 
     154                                ), 
     155                                'pk' => array('id'), 
     156                                'fk' => array(), 
     157                                'ix' => array(), 
     158                                'uc' => array() 
     159                                ) 
     160                        ); 
     161                        $oProc->CreateTable('expressomail_followupflag',array( 
     162                                'fd' => array( 
     163                                        'id' => array('type' => 'auto','nullable' => False), 
     164                                        'user_id' => array('type' => 'int', 'precision' => '8','nullable' => true), 
     165                                        'name' => array('type' => 'varchar','precision' => '255','nullable' => False) 
     166                                ), 
     167                                'pk' => array('id'), 
     168                                'fk' => array(), 
     169                                'ix' => array(), 
     170                                'uc' => array() 
     171                                ) 
     172                        ); 
     173                        $oProc->CreateTable('expressomail_message_followupflag',array( 
     174                                'fd' => array( 
     175                                        'id' => array('type' => 'auto','nullable' => False), 
     176                                        'followupflag_id' => array('type' => 'int', 'precision' => '8','nullable' => False),                                     
     177                                        'border_color' => array('type' => 'varchar','precision' => '7','nullable' => true), 
     178                                        'background_color' => array('type' => 'varchar','precision' => '7','nullable' => true), 
     179                                        'font_color' => array('type' => 'varchar','precision' => '7','nullable' => true), 
     180                                        'alarm_deadline' => array('type' => 'timestamp', 'nullable' => true), 
     181                                        'done_deadline' => array('type' => 'timestamp', 'nullable' => true), 
     182                                        'is_done' => array('type' => 'int', 'precision' => '8','nullable' => true) 
     183                                ), 
     184                                'pk' => array('id'), 
     185                                'fk' => array(), 
     186                                'ix' => array(), 
     187                                'uc' => array() 
     188                                ) 
     189                        );                       
     190                        $oProc->query("ALTER TABLE expressomail_message_followupflag ADD CONSTRAINT expressomail_message_followupflag_followupflag_id_fkey FOREIGN KEY (followupflag_id) REFERENCES expressomail_followupflag (id);"); 
     191                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Follow up'), ('Read'), ('Forward'), ('Answer'), ('Don''t forward'), ('Don''t answer');"); 
     192                         
     193                        //Insert reservados para as labels padrões referentes ao thunderbir 
     194                        $oProc->query("INSERT INTO expressomail_label(name, font_color, border_color, background_color) VALUES ('Important', '#ff0000', '#ff0000', '#ffffff');");  
     195                        $oProc->query("INSERT INTO expressomail_label(name, font_color, border_color, background_color) VALUES ('Work', '#ff9900', '#ff9900', '#ffffff');");  
     196                        $oProc->query("INSERT INTO expressomail_label(name, font_color, border_color, background_color) VALUES ('personal', '#009900', '#009900', '#ffffff');");  
     197                        $oProc->query("INSERT INTO expressomail_label(name, font_color, border_color, background_color) VALUES ('todo', '#3333ff', '#3333ff', '#ffffff');");  
     198                        $oProc->query("INSERT INTO expressomail_label(name, font_color, border_color, background_color) VALUES ('later', '#993399', '#993399', '#ffffff');"); 
     199                                                 
     200                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '2.4.1'; 
     201        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     202        }        
    143203?> 
Note: See TracChangeset for help on using the changeset viewer.