Adds support for SCM/LDAP passwords encryption in the database (#7411).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4950 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-02-26 13:09:25 +00:00
parent e1ad561cf6
commit a78d565959
9 changed files with 269 additions and 2 deletions
@@ -0,0 +1,9 @@
class ChangeRepositoriesPasswordLimit < ActiveRecord::Migration
def self.up
change_column :repositories, :password, :string, :limit => nil, :default => ''
end
def self.down
change_column :repositories, :password, :string, :limit => 60, :default => ''
end
end
@@ -0,0 +1,9 @@
class ChangeAuthSourcesAccountPasswordLimit < ActiveRecord::Migration
def self.up
change_column :auth_sources, :account_password, :string, :limit => nil, :default => ''
end
def self.down
change_column :auth_sources, :account_password, :string, :limit => 60, :default => ''
end
end