diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/File.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/File.java index 12062e94..401e1f7e 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/File.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/File.java @@ -34,7 +34,7 @@ public class File implements Loggable { /** * User ID. */ - @Column(name = "FIL_IDUSER_C", length = 36) + @Column(name = "FIL_IDUSER_C", length = 36, nullable = false) private String userId; /** diff --git a/docs-core/src/main/resources/config.properties b/docs-core/src/main/resources/config.properties index 03d382c6..a8182ebd 100644 --- a/docs-core/src/main/resources/config.properties +++ b/docs-core/src/main/resources/config.properties @@ -1 +1 @@ -db.version=4 \ No newline at end of file +db.version=5 \ No newline at end of file diff --git a/docs-core/src/main/resources/db/update/dbupdate-005-0.sql b/docs-core/src/main/resources/db/update/dbupdate-005-0.sql new file mode 100644 index 00000000..6d210ced --- /dev/null +++ b/docs-core/src/main/resources/db/update/dbupdate-005-0.sql @@ -0,0 +1,2 @@ +alter table T_FILE alter column FIL_IDUSER_C set not null; +update T_CONFIG set CFG_VALUE_C = '5' where CFG_ID_C = 'DB_VERSION'; diff --git a/docs-web/src/dev/resources/config.properties b/docs-web/src/dev/resources/config.properties index 299540e8..680c36e5 100644 --- a/docs-web/src/dev/resources/config.properties +++ b/docs-web/src/dev/resources/config.properties @@ -1,3 +1,3 @@ api.current_version=${project.version} api.min_version=1.0 -db.version=4 \ No newline at end of file +db.version=5 \ No newline at end of file diff --git a/docs-web/src/prod/resources/config.properties b/docs-web/src/prod/resources/config.properties index 299540e8..680c36e5 100644 --- a/docs-web/src/prod/resources/config.properties +++ b/docs-web/src/prod/resources/config.properties @@ -1,3 +1,3 @@ api.current_version=${project.version} api.min_version=1.0 -db.version=4 \ No newline at end of file +db.version=5 \ No newline at end of file diff --git a/docs-web/src/stress/resources/config.properties b/docs-web/src/stress/resources/config.properties index 299540e8..680c36e5 100644 --- a/docs-web/src/stress/resources/config.properties +++ b/docs-web/src/stress/resources/config.properties @@ -1,3 +1,3 @@ api.current_version=${project.version} api.min_version=1.0 -db.version=4 \ No newline at end of file +db.version=5 \ No newline at end of file