diff --git a/README.rdoc b/README.rdoc index 4eb229e..f8f2028 100644 --- a/README.rdoc +++ b/README.rdoc @@ -7,6 +7,12 @@ It allows to customize workflow by defining own rules for issues processing. It' * To raise custom errors which will display to user, if he does something wrong; * To do anything that conforms to your needs; +== Thanks to + +Plugin development is supported by DOM Digital Online Media GmbH + +http://www.dom.de + == Installation From a ZIP file: @@ -89,10 +95,11 @@ Do not forget to check whether issue is just created. Here we create the new iss == Compatibility -This plug-in is compatible with Redmine 1.2.x, 1.3.x, 1.4.x, 2.0.x, 2.1.x +This plug-in is compatible with Redmine 1.2.x, 1.3.x, 1.4.x, 2.x.x == Changelog +[0.0.5] Compatibility with latest versions of Redmine 2.x.x [0.0.4] * Added ability to enable workflows globally for all projects. No need to enable 'Custom workflows' project module anymore. Just go to the 'Administration' -> 'Custom workflows' section and enable or disable your workflows in one place. * Fixed bug with 'Status transition prohibited' when updating the issue status by the repository commit [0.0.3] Compatibility with 1.2.x, 1.3.x diff --git a/db/migrate/20110915084858_create_custom_workflows.rb b/db/migrate/20110915084858_create_custom_workflows.rb index 4db4e7d..0f2f9f1 100644 --- a/db/migrate/20110915084858_create_custom_workflows.rb +++ b/db/migrate/20110915084858_create_custom_workflows.rb @@ -2,7 +2,7 @@ class CreateCustomWorkflows < ActiveRecord::Migration def self.up create_table :custom_workflows, :force => true do |t| t.references :project - t.text :script + t.text :script, :null => true, :default => nil t.boolean :is_enabled end add_index :custom_workflows, [:project_id], :unique => true diff --git a/db/migrate/20120601054047_alter_custom_workflows.rb b/db/migrate/20120601054047_alter_custom_workflows.rb index 92db4b2..84fdf31 100644 --- a/db/migrate/20120601054047_alter_custom_workflows.rb +++ b/db/migrate/20120601054047_alter_custom_workflows.rb @@ -2,8 +2,8 @@ class AlterCustomWorkflows < ActiveRecord::Migration def self.up remove_column :custom_workflows, :project_id remove_column :custom_workflows, :is_enabled - add_column :custom_workflows, :name, :string, :null => false, :default => "" - add_column :custom_workflows, :description, :string, :null => false, :default => "" + add_column :custom_workflows, :name, :string, :null => false, :default => '' + add_column :custom_workflows, :description, :string, :null => false, :default => '' add_column :custom_workflows, :position, :integer, :null => false, :default => 1 end diff --git a/db/migrate/20120628060102_change_custom_workflows_description_type.rb b/db/migrate/20120628060102_change_custom_workflows_description_type.rb index c00d12c..1694f56 100644 --- a/db/migrate/20120628060102_change_custom_workflows_description_type.rb +++ b/db/migrate/20120628060102_change_custom_workflows_description_type.rb @@ -1,9 +1,9 @@ class ChangeCustomWorkflowsDescriptionType < ActiveRecord::Migration def self.up - change_column :custom_workflows, :description, :text, :null => false, :default => "" + change_column :custom_workflows, :description, :text, :null => true, :default => nil end def self.down - change_column :custom_workflows, :description, :string, :null => false, :default => "" + change_column :custom_workflows, :description, :string, :null => false, :default => '' end end diff --git a/db/migrate/20120908085222_add_after_save_to_custom_workflows.rb b/db/migrate/20120908085222_add_after_save_to_custom_workflows.rb index 7c3009b..7211212 100644 --- a/db/migrate/20120908085222_add_after_save_to_custom_workflows.rb +++ b/db/migrate/20120908085222_add_after_save_to_custom_workflows.rb @@ -1,8 +1,8 @@ class AddAfterSaveToCustomWorkflows < ActiveRecord::Migration def self.up rename_column :custom_workflows, :script, :before_save - change_column :custom_workflows, :before_save, :text, :null => false, :default => "" - add_column :custom_workflows, :after_save, :text, :null => false, :default => "", :after => :before_save + change_column :custom_workflows, :before_save, :text, :null => true + add_column :custom_workflows, :after_save, :text, :null => true, :after => :before_save end def self.down remove_column :custom_workflows, :after_save diff --git a/init.rb b/init.rb index 5bb74ef..829ccec 100644 --- a/init.rb +++ b/init.rb @@ -27,7 +27,7 @@ Redmine::Plugin.register :redmine_custom_workflows do name 'Redmine Custom Workflow plugin' author 'Anton Argirov' description 'Allows to create custom workflows for issues, defined in the plain Ruby language' - version '0.0.4' + version '0.0.5' url 'http://redmine.academ.org' menu :admin_menu, :custom_workflows, {:controller => 'custom_workflows', :action => 'index'}, :caption => :label_custom_workflow_plural