summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 11:50:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 11:50:53 +0000
commita00f04886fac78e489bb030d20414ebdf10841e3 (patch)
tree91d304c1be59bd251afb54143c288eebef2ed1e4 /db
parent1d4ef8964def4ecbe7a11485f72d7fbe61c55724 (diff)
downloadredmine-a00f04886fac78e489bb030d20414ebdf10841e3.tar.gz
redmine-a00f04886fac78e489bb030d20414ebdf10841e3.zip
Increase username length limit from 30 to 60 (#2719).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8778 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120205111326_change_users_login_limit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20120205111326_change_users_login_limit.rb b/db/migrate/20120205111326_change_users_login_limit.rb
new file mode 100644
index 000000000..4508a5c40
--- /dev/null
+++ b/db/migrate/20120205111326_change_users_login_limit.rb
@@ -0,0 +1,9 @@
+class ChangeUsersLoginLimit < ActiveRecord::Migration
+ def self.up
+ change_column :users, :login, :string, :limit => nil, :default => '', :null => false
+ end
+
+ def self.down
+ change_column :users, :login, :string, :limit => 30, :default => '', :null => false
+ end
+end