Compatibility with Redmine 2.x.x

This commit is contained in:
Anton Argirov 2015-05-08 11:58:53 +06:00
parent 9476dea998
commit e05a8a467d
6 changed files with 16 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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