summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-08 09:26:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-08 09:26:57 +0000
commit5c88c1f50bd4295325cbb1a69704cf5423b20b2b (patch)
tree6e7f0891c9dbff690c41f0088472c0838abd3311 /db
parentd85f5518d903a660a3645747d5c47bb8cee1bf35 (diff)
downloadredmine-5c88c1f50bd4295325cbb1a69704cf5423b20b2b.tar.gz
redmine-5c88c1f50bd4295325cbb1a69704cf5423b20b2b.zip
Changed the length of 'language' column in users table from 2 to 5, to allow long language codes like pt-br.
Updated portuguese translation (Arthur Zapparoli). Current pt translation moved to pt-br. git-svn-id: http://redmine.rubyforge.org/svn/trunk@518 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/044_set_language_length_to_five.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/044_set_language_length_to_five.rb b/db/migrate/044_set_language_length_to_five.rb
new file mode 100644
index 000000000..a417f7d70
--- /dev/null
+++ b/db/migrate/044_set_language_length_to_five.rb
@@ -0,0 +1,9 @@
+class SetLanguageLengthToFive < ActiveRecord::Migration
+ def self.up
+ change_column :users, :language, :string, :limit => 5, :default => ""
+ end
+
+ def self.down
+ raise IrreversibleMigration
+ end
+end