aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-07-19 15:39:22 +0200
committerSonarTech <sonartech@sonarsource.com>2019-08-09 20:21:24 +0200
commita787e0d957e3bf706e8d28934300468ac2a7ee14 (patch)
tree7d4220e3194740360ce368506e7c17572095b023
parent26aceee57542712fc72fcf7bdea319f420c0eb32 (diff)
downloadsonarqube-a787e0d957e3bf706e8d28934300468ac2a7ee14.tar.gz
sonarqube-a787e0d957e3bf706e8d28934300468ac2a7ee14.zip
SONAR-8520 fix missing not null in schema-h2.ddl for table PROPERTIES
-rw-r--r--server/sonar-db-dao/src/main/resources/org/sonar/db/schema-h2.ddl2
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/platform/BackendCleanupTest/shared.xml3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/schema-h2.ddl b/server/sonar-db-dao/src/main/resources/org/sonar/db/schema-h2.ddl
index 157cdd5e334..8b28fb4c617 100644
--- a/server/sonar-db-dao/src/main/resources/org/sonar/db/schema-h2.ddl
+++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/schema-h2.ddl
@@ -329,7 +329,7 @@ CREATE TABLE "PROPERTIES" (
"IS_EMPTY" BOOLEAN NOT NULL,
"TEXT_VALUE" VARCHAR(4000),
"CLOB_VALUE" CLOB,
- "CREATED_AT" BIGINT
+ "CREATED_AT" BIGINT NOT NULL
);
CREATE INDEX "PROPERTIES_KEY" ON "PROPERTIES" ("PROP_KEY");
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/platform/BackendCleanupTest/shared.xml b/server/sonar-server/src/test/resources/org/sonar/server/platform/BackendCleanupTest/shared.xml
index 63b66538ca9..2ea3710ff7c 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/platform/BackendCleanupTest/shared.xml
+++ b/server/sonar-server/src/test/resources/org/sonar/server/platform/BackendCleanupTest/shared.xml
@@ -54,6 +54,7 @@
resource_id="1"
user_id="[null]"
is_empty="[true]"
- text_value="Sonar Way"/>
+ text_value="Sonar Way"
+ created_at="1225630680000"/>
</dataset>