aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-02 16:13:40 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-02 16:13:40 +0200
commit6f08f9ae68ee9c19d19e4aab66af10f3a5e533cf (patch)
tree24bdfd309862685995afb4cd8073d37463ad11d8 /sonar-server/src
parent6c35aa3b8bf224fc0df455e1e7a941e153dc4cb6 (diff)
downloadsonarqube-6f08f9ae68ee9c19d19e4aab66af10f3a5e533cf.tar.gz
sonarqube-6f08f9ae68ee9c19d19e4aab66af10f3a5e533cf.zip
SONAR-4463 Added the new db tables related to permission templates
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/415_create_permission_templates.rb35
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/416_create_permission_templates_users.rb35
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/417_create_permission_templates_groups.rb35
3 files changed, 105 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/415_create_permission_templates.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/415_create_permission_templates.rb
new file mode 100644
index 00000000000..58ace28ff96
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/415_create_permission_templates.rb
@@ -0,0 +1,35 @@
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2008-2013 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+# @since Sonar 3.7
+# See SONAR-4463
+#
+class CreatePermissionTemplates < ActiveRecord::Migration
+
+ def self.up
+ create_table :permission_templates do |t|
+ t.column :name, :string, :null => false, :limit => 100
+ t.column :description, :string, :null => true, :limit => 4000
+ t.column :created_at, :datetime, :null => true
+ t.column :updated_at, :datetime, :null => true
+ end
+ end
+
+end \ No newline at end of file
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/416_create_permission_templates_users.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/416_create_permission_templates_users.rb
new file mode 100644
index 00000000000..36b3d2214e8
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/416_create_permission_templates_users.rb
@@ -0,0 +1,35 @@
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2008-2013 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+# @since Sonar 3.7
+# See SONAR-4463
+#
+class CreatePermissionTemplatesUsers < ActiveRecord::Migration
+
+ def self.up
+ create_table :permission_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
+ t.column :updated_at, :datetime, :null => true
+ end
+ end
+
+end \ No newline at end of file
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/417_create_permission_templates_groups.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/417_create_permission_templates_groups.rb
new file mode 100644
index 00000000000..3c6b08d866b
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/417_create_permission_templates_groups.rb
@@ -0,0 +1,35 @@
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2008-2013 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+#
+# @since Sonar 3.7
+# See SONAR-4463
+#
+class CreatePermissionTemplatesGroups < ActiveRecord::Migration
+
+ def self.up
+ create_table :permission_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
+ t.column :updated_at, :datetime, :null => true
+ end
+ end
+
+end \ No newline at end of file