Changeset 3627


Ignore:
Timestamp:
12/23/10 12:20:46 (13 years ago)
Author:
amuller
Message:

Ticket #427 - Resolvendo problemas de instalação sem o dump

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.setup.inc.php

    r2004 r3627  
    956956                                if ($rights) 
    957957                                { 
    958                                         $this->db->query("INSERT INTO phpgw_acl(acl_appname,acl_location,acl_account,acl_rights) VALUES('$app','$location',$account,$rights)"); 
    959                                 } 
     958                                        $this->db->query("INSERT INTO phpgw_acl(acl_appname,acl_location,acl_account,acl_rights) VALUES('$app','$location',$account,$rights);"); 
     959                                } 
     960                        } 
     961                        $this->db->query("END TRANSACTION; COMMIT;"); 
     962                        if ($this->db->Error){ 
     963                                echo "Error in acl update"; 
     964                                exit; 
    960965                        } 
    961966                } 
  • trunk/setup/index.php

    r338 r3627  
    281281                        $db_filled_block = $db_filled_block . $setup_tpl->get_var('V_db_stage_6_post'); 
    282282                        $setup_tpl->set_var('V_db_filled_block',$db_filled_block); 
     283                        /* Hack to fix database inconsistency */ 
     284                        $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_access_log ADD COLUMN browser varchar(200);"); 
     285                        $GLOBALS['phpgw_setup']->db->query("CREATE TABLE phpgw_async ( 
     286                                id character varying(255) NOT NULL, 
     287                                next integer NOT NULL, 
     288                                times character varying(255) NOT NULL, 
     289                                method character varying(80) NOT NULL, 
     290                                data text NOT NULL, 
     291                                account_id integer DEFAULT 0 NOT NULL);");       
     292 
    283293                        break; 
    284294                case 10: 
Note: See TracChangeset for help on using the changeset viewer.