]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4463 Renamed permissions tables to comply with the max length constraint on...
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Tue, 2 Jul 2013 15:20:31 +0000 (17:20 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Tue, 2 Jul 2013 15:20:31 +0000 (17:20 +0200)
sonar-core/src/main/java/org/sonar/core/persistence/DatabaseUtils.java
sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
sonar-server/src/main/webapp/WEB-INF/db/migrate/416_create_permission_templates_users.rb
sonar-server/src/main/webapp/WEB-INF/db/migrate/417_create_permission_templates_groups.rb

index 222f6090d003b4cfda6222370597ad04751e2208..aba584bcaa3c8dfbc03bce6c1971ac6e34c6aa68 100644 (file)
@@ -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",
index 22b9d284ae9bcb6342b5d2fcbb4b9acc4e24a028..76d10c54a4b897a648d792f476767c81034ce2ec 100644 (file)
@@ -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,
index 36b3d2214e8a199ed42e7e8c259ee41c33c28626..ee85d9378b22a5d4f8c2b329d6e880caf067cf8d 100644 (file)
@@ -24,7 +24,7 @@
 class CreatePermissionTemplatesUsers < ActiveRecord::Migration
 
   def self.up
-    create_table :permission_templates_users do |t|
+    create_table :perm_templates_users do |t|
       t.column :user_login,       :string,  :null => false,   :limit => 40
       t.column :template_name,    :string,  :null => false,   :limit => 100
       t.column :created_at,       :datetime,  :null => true
index 3c6b08d866bcf3f3e59e857e4d8ca03678d65ea8..6ad66c99515b42b66824b7bfe19cb5b33bb9c49d 100644 (file)
@@ -24,7 +24,7 @@
 class CreatePermissionTemplatesGroups < ActiveRecord::Migration
 
   def self.up
-    create_table :permission_templates_groups do |t|
+    create_table :perm_templates_groups do |t|
       t.column :group_id,         :integer,   :null => true
       t.column :template_name,    :string,    :null => false,   :limit => 100
       t.column :created_at,       :datetime,  :null => true