From c3981445f2e7d1205cc1b53f016df4c8309f0f0b Mon Sep 17 00:00:00 2001 From: j-dimension Date: Tue, 7 Nov 2023 01:20:56 +0100 Subject: [PATCH] email signature now text instead of varchar - may hold more data. close #2178. --- .../java/com/jdimension/jlawyer/persistence/MailboxSetup.java | 2 +- .../db/migration/V2_6_0_3__ModifyMailboxSetupSignature.sql | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 j-lawyer-server-entities/src/java/db/migration/V2_6_0_3__ModifyMailboxSetupSignature.sql diff --git a/j-lawyer-server-entities/src/java/com/jdimension/jlawyer/persistence/MailboxSetup.java b/j-lawyer-server-entities/src/java/com/jdimension/jlawyer/persistence/MailboxSetup.java index e754ae8a..d043971c 100644 --- a/j-lawyer-server-entities/src/java/com/jdimension/jlawyer/persistence/MailboxSetup.java +++ b/j-lawyer-server-entities/src/java/com/jdimension/jlawyer/persistence/MailboxSetup.java @@ -714,7 +714,7 @@ public class MailboxSetup implements Serializable, EventTypes { protected String emailOutPort; @Column(name = "emailSenderName") protected String emailSenderName; - @Column(name = "emailSignature") + @Column(name = "emailSignature", columnDefinition = "TEXT") protected String emailSignature; @Column(name = "emailInSsl", columnDefinition = "TINYINT") protected boolean emailInSsl; diff --git a/j-lawyer-server-entities/src/java/db/migration/V2_6_0_3__ModifyMailboxSetupSignature.sql b/j-lawyer-server-entities/src/java/db/migration/V2_6_0_3__ModifyMailboxSetupSignature.sql new file mode 100644 index 00000000..d45db960 --- /dev/null +++ b/j-lawyer-server-entities/src/java/db/migration/V2_6_0_3__ModifyMailboxSetupSignature.sql @@ -0,0 +1,3 @@ +alter table mailbox_setup modify emailSignature TEXT default null; +insert into server_settings(settingKey, settingValue) values('jlawyer.server.database.version','2.6.0.3') ON DUPLICATE KEY UPDATE settingValue = '2.6.0.3'; +commit; \ No newline at end of file