summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-23 16:37:34 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-23 16:38:26 +0200
commitf143bb0813f7286f618b21c0a563681881ca251c (patch)
tree339cc3e6e7660cf515ec9d4d95602590fe3ce937
parent806ff5e07a683f44132e2ffb7a471289637ea34d (diff)
downloadsonarqube-f143bb0813f7286f618b21c0a563681881ca251c.tar.gz
sonarqube-f143bb0813f7286f618b21c0a563681881ca251c.zip
SONAR-5007 fix db migration
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/552_add_qprofile_dates.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
index 028bfb8749b..d9335527a23 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
@@ -51,7 +51,7 @@ CREATE TABLE "RULES_PROFILES" (
"LANGUAGE" VARCHAR(20),
"KEE" VARCHAR(255) NOT NULL,
"PARENT_KEE" VARCHAR(255),
- "RULES_UPDATED_AT" VARCHAR(24),
+ "RULES_UPDATED_AT" VARCHAR(100),
"CREATED_AT" TIMESTAMP,
"UPDATED_AT" TIMESTAMP
);
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/552_add_qprofile_dates.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/552_add_qprofile_dates.rb
index b6e6b2d2924..0fe7f3331b7 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/552_add_qprofile_dates.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/552_add_qprofile_dates.rb
@@ -24,7 +24,7 @@
class AddQprofileDates < ActiveRecord::Migration
def self.up
- add_column :rules_profiles, :rules_updated_at, :string, :limit => 24
+ add_column :rules_profiles, :rules_updated_at, :string, :limit => 100
add_column :rules_profiles, :created_at, :datetime, :null => true
add_column :rules_profiles, :updated_at, :datetime, :null => true
end