From c27101fd5ec87080f05b9e30b035a0872c11e15f Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Fri, 20 Jun 2014 11:52:16 +0200 Subject: [PATCH] SONAR-5329 - Missing merge --- .../webapp/WEB-INF/db/migrate/540_create_activities_table.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/540_create_activities_table.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/540_create_activities_table.rb index 93803c4c75d..207b371b689 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/540_create_activities_table.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/540_create_activities_table.rb @@ -23,7 +23,6 @@ # SONAR-5329 # class CreateActivitiesTable < ActiveRecord::Migration - def self.up create_table 'activities'do |t| t.column 'created_at', :datetime, :null => false @@ -32,8 +31,8 @@ class CreateActivitiesTable < ActiveRecord::Migration t.column 'log_type', :string, :limit => 50 t.column 'log_action', :string, :limit => 50 t.column 'log_message', :string, :limit => 4000 + t.column 'log_key', :string end - + add_index 'activities', :log_key, :unique => true, :name => 'activities_log_key' end - end -- 2.39.5