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 | $oProc->query("INSERT INTO phpgw_config(config_app, config_name, config_value) VALUES ('expressoMail1_2', 'allow_hidden_copy', 'True');"); |
---|
24 | |
---|
25 | /* Registra o hook de validação do administrador*/ |
---|
26 | $oProc->query("INSERT INTO phpgw_hooks( \"hook_appname\", \"hook_location\", \"hook_filename\") VALUES ('expressoMail1_2', 'config_validate', 'hook_config_validate.inc.php')"); |
---|
27 | |
---|
28 | /* Cria um indice unico para um owner e mail para nao ocorrer duplicidade em e-mails para um mesmo owner */ |
---|
29 | $oProc->query("ALTER TABLE expressomail_dynamic_contact ADD CONSTRAINT owner_mail UNIQUE (owner, mail)"); |
---|
30 | ?> |
---|