]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6716 Compress migrations of table action_plans
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 10 Jun 2015 21:16:48 +0000 (23:16 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 16 Jul 2015 20:23:33 +0000 (22:23 +0200)
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/238_create_action_plans.rb
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/259_rename_action_plans_deadline.rb [deleted file]
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/394_add_key_to_action_plan.rb [deleted file]

index 34dc67f6c4269249202359c68bb3422489d6da82..e5cbc676beeb759c50d8756c8047674e10d4363a 100644 (file)
@@ -28,10 +28,11 @@ class CreateActionPlans < ActiveRecord::Migration
       t.timestamps
       t.column 'name',          :string,      :null => true,    :limit => 200
       t.column 'description',   :string,      :null => true,    :limit => 1000
-      t.column 'dead_line',     :datetime,    :null => true
+      t.column 'deadline',     :datetime,    :null => true
       t.column 'user_login',    :string,      :null => true,    :limit => 40
       t.column 'project_id',    :integer,     :null => true
       t.column 'status',        :string,      :null => true,    :limit => 10
+      t.column 'kee',           :string,      :null => true,    :limit => 100
     end
     alter_to_big_primary_key('action_plans')
 
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/259_rename_action_plans_deadline.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/259_rename_action_plans_deadline.rb
deleted file mode 100644 (file)
index 4c7664f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# 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.
-#
-
-#
-# Sonar 2.14
-#
-class RenameActionPlansDeadline < ActiveRecord::Migration
-
-  def self.up
-    rename_column(:action_plans, :dead_line, :deadline)
-  end
-
-end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/394_add_key_to_action_plan.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/394_add_key_to_action_plan.rb
deleted file mode 100644 (file)
index edcf5bf..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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.
-#
-
-#
-# Sonar 3.6
-#
-class AddKeyToActionPlan < ActiveRecord::Migration
-
-  def self.up
-    add_column 'action_plans', 'kee', :string, :null => true, :limit => 100
-  end
-
-end
-