From e410c2f732cb7c46a7da38619bd85a2a5f6a99e8 Mon Sep 17 00:00:00 2001 From: Eric Long Date: Wed, 20 Jul 2022 17:00:27 -0400 Subject: [PATCH] 0005370: Send schema DDL detects widened varchar but does not alter --- .../src/main/java/org/jumpmind/db/model/Column.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/symmetric-db/src/main/java/org/jumpmind/db/model/Column.java b/symmetric-db/src/main/java/org/jumpmind/db/model/Column.java index 1726a8095f..deee68f956 100644 --- a/symmetric-db/src/main/java/org/jumpmind/db/model/Column.java +++ b/symmetric-db/src/main/java/org/jumpmind/db/model/Column.java @@ -392,6 +392,12 @@ public void setSize(String size) { sizeAsInt = null; scale = 0; } + if (platformColumns != null) { + for (PlatformColumn platformColumn : platformColumns.values()) { + platformColumn.setSize(sizeAsInt == null ? -1 : sizeAsInt); + platformColumn.setDecimalDigits(size == null || size.indexOf(",") < 0 ? -1 : scale); + } + } } /** @@ -428,6 +434,12 @@ public final void setSizeAndScale(int size, int scale) { if (scale > 0) { this.size += "," + scale; } + if (platformColumns != null) { + for (PlatformColumn platformColumn : platformColumns.values()) { + platformColumn.setSize(size); + platformColumn.setDecimalDigits(scale); + } + } } /**