summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-26 13:09:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-26 13:09:25 +0000
commita78d5659593d9fcce02a24a95c0ca0d111706465 (patch)
tree6b729c9b4f6d1413af78c5fe59a2a29bbc954b44 /db/migrate
parente1ad561cf652713bbdebe2d60fc4c680fb367ec1 (diff)
downloadredmine-a78d5659593d9fcce02a24a95c0ca0d111706465.tar.gz
redmine-a78d5659593d9fcce02a24a95c0ca0d111706465.zip
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
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20110226120112_change_repositories_password_limit.rb9
-rw-r--r--db/migrate/20110226120132_change_auth_sources_account_password_limit.rb9
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20110226120112_change_repositories_password_limit.rb b/db/migrate/20110226120112_change_repositories_password_limit.rb
new file mode 100644
index 000000000..1ad937c7d
--- /dev/null
+++ b/db/migrate/20110226120112_change_repositories_password_limit.rb
@@ -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
diff --git a/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb
new file mode 100644
index 000000000..b1cd80aa5
--- /dev/null
+++ b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb
@@ -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