diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-22 19:15:55 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-26 13:54:16 +0100 |
commit | 5c920f1d8e47f3c61f951fecf3e1fa6e31a1892a (patch) | |
tree | e56ebecb4ba742d19c2185ef465edd684bde100f /sonar-server/src/main/webapp | |
parent | b6fe0fa6e5af97a38224c53449c316dd1978d848 (diff) | |
download | sonarqube-5c920f1d8e47f3c61f951fecf3e1fa6e31a1892a.tar.gz sonarqube-5c920f1d8e47f3c61f951fecf3e1fa6e31a1892a.zip |
SONAR-3825 create the table MEASURE_FILTERS
Diffstat (limited to 'sonar-server/src/main/webapp')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/db/migrate/356_create_measure_filters.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/356_create_measure_filters.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/356_create_measure_filters.rb new file mode 100644 index 00000000000..4a50f1103aa --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/356_create_measure_filters.rb @@ -0,0 +1,37 @@ +# +# Sonar, entreprise quality control tool. +# Copyright (C) 2008-2012 SonarSource +# mailto:contact AT sonarsource DOT com +# +# Sonar 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. +# +# Sonar 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 Sonar; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 +# + +# +# Sonar 3.4 +# +class CreateMeasureFilters < ActiveRecord::Migration + def self.up + create_table 'measure_filters' do |t| + t.column 'name', :string, :null => false, :limit => 100 + t.column 'user_id', :integer, :null => true + t.column 'shared', :boolean, :null => true + t.column 'description', :string, :null => true, :limit => 4000 + t.column 'data', :text, :null => true + t.timestamps + end + add_index 'measure_filters', 'name', :name => 'measure_filters_name' + end +end + |