aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-01-31 16:11:09 +0100
committersonartech <sonartech@sonarsource.com>2019-02-11 09:11:43 +0100
commit86fd5f96559251aaf98efef4918ce41b7c884c7f (patch)
tree47252a0a7d5fed66cb9d267631cd436662b87802 /server/sonar-db-core
parentabb6aa64f9b3d74d1c757017a5521036abcfc867 (diff)
downloadsonarqube-86fd5f96559251aaf98efef4918ce41b7c884c7f.tar.gz
sonarqube-86fd5f96559251aaf98efef4918ce41b7c884c7f.zip
SONAR-11650 Drop DATA_TYPE from FILE_SOURCES
* SONAR-11650 Remove usage of FILE_SOURCES#DATA_TYPE * SONAR-11650 Drop DATA_TYPE column from FILE_SOURCES table
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
index dae2190297c..f4564b57007 100644
--- a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
+++ b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
@@ -674,7 +674,6 @@ CREATE TABLE "FILE_SOURCES" (
"LINE_HASHES_VERSION" INTEGER,
"LINE_COUNT" INTEGER NOT NULL,
"BINARY_DATA" BLOB,
- "DATA_TYPE" VARCHAR(20),
"DATA_HASH" VARCHAR(50),
"SRC_HASH" VARCHAR(50),
"REVISION" VARCHAR(100),
@@ -682,7 +681,7 @@ CREATE TABLE "FILE_SOURCES" (
"UPDATED_AT" BIGINT NOT NULL
);
CREATE INDEX "FILE_SOURCES_PROJECT_UUID" ON "FILE_SOURCES" ("PROJECT_UUID");
-CREATE UNIQUE INDEX "FILE_SOURCES_UUID_TYPE" ON "FILE_SOURCES" ("FILE_UUID", "DATA_TYPE");
+CREATE UNIQUE INDEX "FILE_SOURCES_FILE_UUID" ON "FILE_SOURCES" ("FILE_UUID");
CREATE INDEX "FILE_SOURCES_UPDATED_AT" ON "FILE_SOURCES" ("UPDATED_AT");