mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-18 18:32:07 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
-- deactivate mail servers
|
||||
UPDATE ir_mail_server
|
||||
SET active = false;
|
||||
|
||||
-- insert dummy mail server to prevent using fallback servers specified using command line
|
||||
INSERT INTO ir_mail_server(name, smtp_port, smtp_host, smtp_encryption, active, smtp_authentication)
|
||||
VALUES ('neutralization - disable emails', 1025, 'invalid', 'none', true, 'login');
|
||||
|
||||
-- deactivate crons
|
||||
UPDATE ir_cron
|
||||
SET active = false
|
||||
WHERE id NOT IN (
|
||||
SELECT res_id
|
||||
FROM ir_model_data
|
||||
WHERE model = 'ir.cron'
|
||||
AND name = 'autovacuum_job'
|
||||
AND module = 'base'
|
||||
);
|
||||
|
||||
-- neutralization flag for the database
|
||||
INSERT INTO ir_config_parameter (key, value)
|
||||
VALUES ('database.is_neutralized', true)
|
||||
ON CONFLICT (key) DO
|
||||
UPDATE SET value = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue