diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2018-07-27 10:56:05 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-10 20:21:29 +0200 |
commit | 5d2dc236eb5ed578a124c38b12734c780397a9c9 (patch) | |
tree | 9edf7633b2d04c8ef7e691f883edf35172ba9670 /server/sonar-db-core/src | |
parent | 3b558f1c533095c82a773e3ead84c18d99ce5200 (diff) | |
download | sonarqube-5d2dc236eb5ed578a124c38b12734c780397a9c9.tar.gz sonarqube-5d2dc236eb5ed578a124c38b12734c780397a9c9.zip |
SONAR-11038 Rename table alm_project_mappings -> project_alm_bindings
Diffstat (limited to 'server/sonar-db-core/src')
-rw-r--r-- | server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java | 2 | ||||
-rw-r--r-- | server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java index 9effb770606..18b68506d10 100644 --- a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java +++ b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java @@ -53,7 +53,6 @@ public final class SqTables { "active_rules", "active_rule_parameters", "alm_app_installs", - "alm_project_mappings", "analysis_properties", "ce_activity", "ce_queue", @@ -86,6 +85,7 @@ public final class SqTables { "perm_tpl_characteristics", "plugins", "projects", + "project_alm_bindings", "project_branches", "project_links", "project_mappings", 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 1a36753f7d7..4e43f0178e4 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 @@ -853,7 +853,7 @@ CREATE TABLE "ALM_APP_INSTALLS" ( CREATE UNIQUE INDEX "ALM_APP_INSTALLS_OWNER" ON "ALM_APP_INSTALLS" ("ALM_ID", "OWNER_ID"); CREATE UNIQUE INDEX "ALM_APP_INSTALLS_INSTALL" ON "ALM_APP_INSTALLS" ("ALM_ID", "INSTALL_ID"); -CREATE TABLE "ALM_PROJECT_MAPPINGS" ( +CREATE TABLE "PROJECT_ALM_BINDINGS" ( "UUID" VARCHAR(40) NOT NULL, "ALM_ID" VARCHAR(40) NOT NULL, "REPO_ID" VARCHAR(256) NOT NULL, @@ -862,10 +862,10 @@ CREATE TABLE "ALM_PROJECT_MAPPINGS" ( "URL" VARCHAR(2000) NOT NULL, "CREATED_AT" BIGINT NOT NULL, "UPDATED_AT" BIGINT NOT NULL, - CONSTRAINT "PK_ALM_PROJECT_MAPPINGS" PRIMARY KEY ("UUID") + CONSTRAINT "PK_PROJECT_ALM_BINDINGS" PRIMARY KEY ("UUID") ); -CREATE UNIQUE INDEX "ALM_PROJECT_MAPPINGS_ALM_REPO" ON "ALM_PROJECT_MAPPINGS" ("ALM_ID", "REPO_ID"); -CREATE UNIQUE INDEX "ALM_PROJECT_MAPPINGS_PROJECT" ON "ALM_PROJECT_MAPPINGS" ("PROJECT_UUID"); +CREATE UNIQUE INDEX "PROJECT_ALM_BINDINGS_ALM_REPO" ON "PROJECT_ALM_BINDINGS" ("ALM_ID", "REPO_ID"); +CREATE UNIQUE INDEX "PROJECT_ALM_BINDINGS_PROJECT" ON "PROJECT_ALM_BINDINGS" ("PROJECT_UUID"); CREATE TABLE "PROJECT_MAPPINGS" ( "UUID" VARCHAR(40) NOT NULL, |