Skip to content

Commit d1ad6cc

Browse files
authored
Fix: schema:generate - integer column on postgresql (#89)
1 parent e47f0a0 commit d1ad6cc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mainClassName = "br.com.bluesoft.bee.Bee"
1616

1717
group = 'br.com.bluesoft.bee'
1818
def artifact = 'bee'
19-
version = '1.111'
19+
version = '1.112'
2020

2121
def javaVersion = JavaVersion.VERSION_1_8
2222
sourceCompatibility = javaVersion;
@@ -33,8 +33,8 @@ dependencies {
3333
implementation 'org.apache.groovy:groovy:4.0.22'
3434
implementation 'org.apache.groovy:groovy-sql:4.0.22'
3535
implementation 'org.apache.groovy:groovy-cli-commons:4.0.22'
36-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
37-
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.2'
36+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.21.0'
37+
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.21.0'
3838
testImplementation "org.spockframework:spock-core:2.3-groovy-4.0"
3939
testImplementation 'org.spockframework:spock-junit4:2.3-groovy-4.0'
4040
testImplementation 'cglib:cglib-nodep:3.2.12'

src/main/groovy/br/com/bluesoft/bee/model/TableColumn.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import br.com.bluesoft.bee.model.message.Message
3636
import br.com.bluesoft.bee.model.message.MessageLevel
3737
import br.com.bluesoft.bee.model.message.MessageType
3838
import com.fasterxml.jackson.annotation.JsonAutoDetect
39+
import com.fasterxml.jackson.annotation.JsonInclude
3940
import groovy.transform.AutoClone
4041

4142
import java.text.MessageFormat
@@ -46,7 +47,8 @@ class TableColumn {
4647

4748
String name
4849
String type
49-
Integer size
50+
@JsonInclude(JsonInclude.Include.NON_NULL)
51+
Integer size = null
5052
String sizeType
5153
Integer scale = 0
5254
Boolean nullable = false

0 commit comments

Comments
 (0)