From f2692bfcfeb50b84dad4a3bca8aead61135ad3c5 Mon Sep 17 00:00:00 2001 From: Alex Orluc <alex.orluc@maarch.org> Date: Fri, 29 Jul 2016 09:55:23 +0000 Subject: [PATCH] FIX #4444 change column type sendmail --- core/trunk/sql/160.sql | 3 ++- core/trunk/sql/structure.sql | 11 +++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/core/trunk/sql/160.sql b/core/trunk/sql/160.sql index 47697733e36..46e2155dd1c 100644 --- a/core/trunk/sql/160.sql +++ b/core/trunk/sql/160.sql @@ -168,6 +168,8 @@ ALTER TABLE notes ALTER COLUMN date_note TYPE timestamp without time zone; -- CHANGE COLUMNS TYPE FOR SENDMAIL -- -- ************************************************************************* -- ALTER TABLE sendmail ALTER COLUMN to_list TYPE text; +ALTER TABLE sendmail ALTER COLUMN cc_list TYPE text; +ALTER TABLE sendmail ALTER COLUMN cci_list TYPE text; -- ************************************************************************* -- @@ -426,5 +428,4 @@ UPDATE parameters SET param_value_int = 160 where id='database_version'; -- ************************************************************************* -- -- sve mlb_doctype_ext -- -- ************************************************************************* -- - ALTER TABLE mlb_doctype_ext ADD COLUMN sve_type varchar(255) DEFAULT 'normal'::character varying; \ No newline at end of file diff --git a/core/trunk/sql/structure.sql b/core/trunk/sql/structure.sql index cc2eb73570d..1f9966696bf 100644 --- a/core/trunk/sql/structure.sql +++ b/core/trunk/sql/structure.sql @@ -1,8 +1,3 @@ - - - - - -- core/sql/structure/core.postgresql.sql SET client_encoding = 'UTF8'; @@ -3470,9 +3465,9 @@ CREATE TABLE sendmail coll_id character varying(32) NOT NULL, res_id bigint NOT NULL, user_id character varying(128) NOT NULL, - to_list character varying(255) NOT NULL, - cc_list character varying(255) DEFAULT NULL, - cci_list character varying(255) DEFAULT NULL, + to_list text DEFAULT NULL, + cc_list text DEFAULT NULL, + cci_list text DEFAULT NULL, email_object character varying(255) DEFAULT NULL, email_body text, is_res_master_attached character varying(1) NOT NULL DEFAULT 'Y', -- GitLab