Skip to content

Commit

Permalink
flag to store mass mail messages - db schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Jul 20, 2024
1 parent 9cbe256 commit 0e688a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/db/schema-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@
DESCRIPTION TEXT,
START TIMESTAMP WITHOUT TIME ZONE not null,
LOCK_AFTER_SENDING BOOLEAN not null,
STORE_MESSAGES BOOLEAN not null,
PROBAND_LIST_STATUS_RESEND BOOLEAN not null,
FROM_ADDRESS CHARACTER VARYING(1024) not null,
FROM_NAME CHARACTER VARYING(1024),
Expand Down Expand Up @@ -1985,7 +1986,7 @@
SERIES BOOLEAN not null,
POSITION BIGINT not null,
REF CHARACTER VARYING(1024) not null,
EXTERNAL_ID1 CHARACTER VARYING(1024),
EXTERNAL_ID CHARACTER VARYING(1024),
DISABLED BOOLEAN not null,
OPTIONAL BOOLEAN not null,
AUDIT_TRAIL BOOLEAN not null,
Expand Down Expand Up @@ -2206,6 +2207,7 @@
VISIBLE_MASS_MAIL_TAB_LIST CHARACTER VARYING(1024),
ENABLE_USER_MODULE BOOLEAN not null,
VISIBLE_USER_TAB_LIST CHARACTER VARYING(1024),
TAB_ORIENTATION CHARACTER VARYING(1024),
INHERITED_PROPERTY_LIST CHARACTER VARYING(1024),
INHERITED_PERMISSION_PROFILE_GROUP_LIST CHARACTER VARYING(1024),
DEFERRED_DELETE BOOLEAN not null,
Expand Down
2 changes: 1 addition & 1 deletion core/db/schema-set-version.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ begin
end
$$ language plpgsql;

select set_database_version('010801050');
select set_database_version('010801060');
11 changes: 11 additions & 0 deletions core/db/schema-up-master.sql
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,16 @@ if get_database_version() < '010801050' then

end if;

if get_database_version() < '010801060' then

ALTER TABLE mass_mail ADD COLUMN store_messages BOOLEAN;
UPDATE mass_mail SET store_messages = 'f';
ALTER TABLE mass_mail ALTER store_messages SET NOT NULL;

perform set_database_version('store_messages');

end if;


end
$$;

0 comments on commit 0e688a0

Please sign in to comment.