remove indexes before renaming tables (some dbs have database-level index namespaces) and unsigned is also a mysqlism

This commit is contained in:
Andy Allan 2008-11-09 19:30:22 +00:00
parent 2aa3daf0e0
commit 4adeeb51ad
4 changed files with 10 additions and 3 deletions

View file

@ -49,6 +49,7 @@ module ActiveRecord
types[:bigint_auto_64] = { :name => "bigint(64) DEFAULT NULL auto_increment" }
types[:bigint_auto_11] = { :name => "bigint(11) DEFAULT NULL auto_increment" }
types[:bigint_auto_20] = { :name => "bigint(20) DEFAULT NULL auto_increment" }
types[:four_byte_unsigned] = { :name=> "integer unsigned NOT NULL" }
types
end