diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-08-04 17:14:51 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-08-05 15:45:01 +0200 |
commit | 453dcdb5e93a05e550094194bead446ac2247361 (patch) | |
tree | 54ff391e516e535249c926174085d459296eb8ff /server/sonar-web/src/main/webapp | |
parent | c8bfb73f05b37160bd872a6ff8b3d227142fcb0d (diff) | |
download | sonarqube-453dcdb5e93a05e550094194bead446ac2247361.tar.gz sonarqube-453dcdb5e93a05e550094194bead446ac2247361.zip |
SONAR-7903 persist analysis reports in db
instead of file system (data/ce/reports). That allows
support of clustering.
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1302_create_table_ce_task_data.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1302_create_table_ce_task_data.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1302_create_table_ce_task_data.rb new file mode 100644 index 00000000000..c46371778b3 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1302_create_table_ce_task_data.rb @@ -0,0 +1,36 @@ +# +# SonarQube, open source software quality management tool. +# Copyright (C) 2008-2014 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. +# + +# +# SonarQube 6.1 +# +class CreateTableCeTaskData < ActiveRecord::Migration + + def self.up + # FIXME define primary key + create_table 'ce_task_data', :id => false do |t| + t.column 'task_uuid', :string, :limit => 40, :null => false + t.column 'data', :binary, :null => true + t.column 'created_at', :big_integer, :null => false + t.column 'updated_at', :big_integer, :null => false + end + add_index 'ce_task_data', 'task_uuid', :name => 'ce_task_data_uuid', :unique => true + end +end |