*/
public class DatabaseVersion implements BatchComponent, ServerComponent {
- public static final int LAST_VERSION = 394;
+ public static final int LAST_VERSION = 396;
public static enum Status {
UP_TO_DATE, REQUIRES_UPGRADE, REQUIRES_DOWNGRADE, FRESH_INSTALL
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('383');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('387');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('388');
-INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('389');
-INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('390');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('391');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('392');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('393');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('394');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('395');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('396');
INSERT INTO USERS(ID, LOGIN, NAME, EMAIL, CRYPTED_PASSWORD, SALT, CREATED_AT, UPDATED_AT, REMEMBER_TOKEN, REMEMBER_TOKEN_EXPIRES_AT) VALUES (1, 'admin', 'Administrator', '', 'a373a0e667abb2604c1fd571eb4ad47fe8cc0878', '48bc4b0d93179b5103fd3885ea9119498e9d161b', '2011-09-26 22:27:48.0', '2011-09-26 22:27:48.0', null, null);
ALTER TABLE USERS ALTER COLUMN ID RESTART WITH 2;
+++ /dev/null
-#
-# 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.
-#
-
-#
-# Sonar 3.6
-#
-class CreateIssues < ActiveRecord::Migration
-
- def self.up
- create_table :issues do |t|
- t.column :kee, :string, :null => false, :limit => 100
- t.column :resource_id, :integer, :null => false
- t.column :rule_id, :integer, :null => true
- t.column :severity, :string, :null => true, :limit => 10
- t.column :manual_severity, :boolean, :null => false
- t.column :manual_issue, :boolean, :null => false
- t.column :description, :string, :null => true, :limit => 4000
- t.column :line, :integer, :null => true
- t.column :cost, :decimal, :null => true, :precision => 30, :scale => 20
- t.column :status, :string , :null => true, :limit => 20
- t.column :resolution, :string , :null => true, :limit => 20
- t.column :checksum, :string , :null => true, :limit => 1000
- t.column :user_login, :string, :null => true, :limit => 40
- t.column :assignee_login, :string, :null => true, :limit => 40
- t.column :author_login, :string, :null => true, :limit => 100
- t.column :attributes, :string, :null => true, :limit => 4000
-
- # functional dates
- t.column :issue_creation_date, :datetime, :null => true
- t.column :issue_close_date, :datetime, :null => true
- t.column :issue_update_date, :datetime, :null => true
-
- # technical dates
- t.column :created_at, :datetime, :null => true
- t.column :updated_at, :datetime, :null => true
- end
-
- add_index :issues, :kee, :name => 'issues_kee'
- add_index :issues, :resource_id, :name => 'issues_resource_id'
- end
-
-end
-
+++ /dev/null
-#
-# 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.
-#
-
-#
-# Sonar 3.6
-#
-class CreateIssueChanges < ActiveRecord::Migration
-
- def self.up
- create_table :issue_changes do |t|
- t.column :kee, :string, :null => true, :limit => 100
- t.column :issue_key, :string, :null => false, :limit => 100
- t.column :user_login, :string, :null => true, :limit => 40
- t.column :change_type, :string, :null => true, :limit => 40
- t.column :change_data, :text, :null => true
- t.column :created_at, :datetime, :null => true
- t.column :updated_at, :datetime, :null => true
- end
-
- add_index :issue_changes, :kee, :name => 'issue_changes_kee'
- add_index :issue_changes, :issue_key, :name => 'issue_changes_issue_key'
- end
-
-end
-
--- /dev/null
+#
+# 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.
+#
+
+#
+# Sonar 3.6
+#
+class CreateIssues < ActiveRecord::Migration
+
+ def self.up
+ create_table :issues do |t|
+ t.column :kee, :string, :null => false, :limit => 100
+ t.column :resource_id, :integer, :null => false
+ t.column :rule_id, :integer, :null => true
+ t.column :severity, :string, :null => true, :limit => 10
+ t.column :manual_severity, :boolean, :null => false
+ t.column :manual_issue, :boolean, :null => false
+ t.column :description, :string, :null => true, :limit => 4000
+ t.column :line, :integer, :null => true
+ t.column :cost, :decimal, :null => true, :precision => 30, :scale => 20
+ t.column :status, :string , :null => true, :limit => 20
+ t.column :resolution, :string , :null => true, :limit => 20
+ t.column :checksum, :string , :null => true, :limit => 1000
+ t.column :user_login, :string, :null => true, :limit => 40
+ t.column :assignee_login, :string, :null => true, :limit => 40
+ t.column :author_login, :string, :null => true, :limit => 100
+ t.column :attributes, :string, :null => true, :limit => 4000
+
+ # functional dates
+ t.column :issue_creation_date, :datetime, :null => true
+ t.column :issue_close_date, :datetime, :null => true
+ t.column :issue_update_date, :datetime, :null => true
+
+ # technical dates
+ t.column :created_at, :datetime, :null => true
+ t.column :updated_at, :datetime, :null => true
+ end
+
+ add_index :issues, :kee, :name => 'issues_kee'
+ add_index :issues, :resource_id, :name => 'issues_resource_id'
+ end
+
+end
+
--- /dev/null
+#
+# 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.
+#
+
+#
+# Sonar 3.6
+#
+class CreateIssueChanges < ActiveRecord::Migration
+
+ def self.up
+ create_table :issue_changes do |t|
+ t.column :kee, :string, :null => true, :limit => 100
+ t.column :issue_key, :string, :null => false, :limit => 100
+ t.column :user_login, :string, :null => true, :limit => 40
+ t.column :change_type, :string, :null => true, :limit => 40
+ t.column :change_data, :text, :null => true
+ t.column :created_at, :datetime, :null => true
+ t.column :updated_at, :datetime, :null => true
+ end
+
+ add_index :issue_changes, :kee, :name => 'issue_changes_kee'
+ add_index :issue_changes, :issue_key, :name => 'issue_changes_issue_key'
+ end
+
+end
+