summaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-02 17:20:31 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-02 17:20:31 +0200
commitcf7b6b92b777146430fcf8f3b4a5666a3f08ad51 (patch)
tree9f1ca31f2172bd111698a7f54f12187b2c7204fb /sonar-core
parentd068651faaeb9f30a39cc23eec8bce710c92fd26 (diff)
downloadsonarqube-cf7b6b92b777146430fcf8f3b4a5666a3f08ad51.tar.gz
sonarqube-cf7b6b92b777146430fcf8f3b4a5666a3f08ad51.zip
SONAR-4463 Renamed permissions tables to comply with the max length constraint on Oracle
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java4
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl4
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java
index 222f6090d00..aba584bcaa3 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java
@@ -72,8 +72,8 @@ public final class DatabaseUtils {
"metrics",
"notifications",
"permission_templates",
- "permission_templates_users",
- "permission_templates_groups",
+ "perm_templates_users",
+ "perm_templates_groups",
"projects",
"project_links",
"project_measures",
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
index 22b9d284ae9..76d10c54a4b 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
@@ -540,7 +540,7 @@ CREATE TABLE "PERMISSION_TEMPLATES" (
"UPDATED_AT" TIMESTAMP
);
-CREATE TABLE "PERMISSION_TEMPLATES_USERS" (
+CREATE TABLE "PERM_TEMPLATES_USERS" (
"ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
"USER_LOGIN" VARCHAR(40) NOT NULL,
"TEMPLATE_NAME" VARCHAR(100) NOT NULL,
@@ -548,7 +548,7 @@ CREATE TABLE "PERMISSION_TEMPLATES_USERS" (
"UPDATED_AT" TIMESTAMP
);
-CREATE TABLE "PERMISSION_TEMPLATES_GROUPS" (
+CREATE TABLE "PERM_TEMPLATES_GROUPS" (
"ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
"GROUP_ID" INTEGER,
"TEMPLATE_NAME" VARCHAR(100) NOT NULL,