source: sandbox/2.4.1-3/expressoMail1_2/setup/default_records.inc.php @ 6468

Revision 6468, 2.1 KB checked in by gustavo, 12 years ago (diff)

Ticket #2766 - Adicionado coluna na tabela ref. ao contatos recentes e acrescentando comentários.

Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare - Setup                                                       *
4  * http://www.egroupware.org                                                *
5  * --------------------------------------------                             *
6  *  This program is free software; you can redistribute it and/or modify it *
7  *  under the terms of the GNU General Public License as published by the   *
8  *  Free Software Foundation; either version 2 of the License, or (at your  *
9  *  option) any later version.                                              *
10  \**************************************************************************/
11
12                        $oProc->query("ALTER TABLE expressomail_message_followupflag ADD CONSTRAINT expressomail_message_followupflag_followupflag_id_fkey FOREIGN KEY (followupflag_id) REFERENCES expressomail_followupflag (id);");
13                       
14                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Follow up');");
15                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Read');");
16                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Forward');");
17                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Answer');");
18                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Don''t forward');");
19                        $oProc->query("INSERT INTO expressomail_followupflag(name) VALUES ('Don''t answer');");
20                                               
21                        /* Seta o valor padrão para a configuração de número máximo de marcadores */
22                        $oProc->query("INSERT INTO phpgw_config(config_app, config_name, config_value) VALUES ('expressoMail1_2', 'expressoMail_limit_labels', 20);");
23                       
24                        /* Registra o hook de validação do administrador*/
25                        $oProc->query("INSERT INTO phpgw_hooks( \"hook_appname\", \"hook_location\", \"hook_filename\") VALUES ('expressoMail1_2', 'config_validate', 'hook_config_validate.inc.php')");
26
27                        /* Cria um indice unico para um owner e mail para nao ocorrer duplicidade em e-mails para um mesmo owner  */
28                        $oProc->query("ALTER TABLE expressomail_dynamic_contact ADD CONSTRAINT owner_mail UNIQUE (owner, mail)");
29?>
Note: See TracBrowser for help on using the repository browser.