Skip to content

Commit

Permalink
Compatibility with Redmine 2.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
anteo committed May 8, 2015
1 parent 9476dea commit e05a8a4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
9 changes: 8 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110915084858_create_custom_workflows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions db/migrate/20120601054047_alter_custom_workflows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
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
Expand Down

0 comments on commit e05a8a4

Please sign in to comment.