]> git.openstreetmap.org Git - rails.git/blobdiff - lib/migrate.rb
Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though
[rails.git] / lib / migrate.rb
index 26e95a496264142d2414e63a199c300942142154..782436af3ff4926e7c6d43e0f1ddac0affe416b2 100644 (file)
@@ -44,6 +44,9 @@ module ActiveRecord
         types = old_native_database_types
         types[:bigint] = { :name => "bigint", :limit => 20 }
         types[:double] = { :name => "double" }
+        types[:bigint_pk] = { :name => "bigint(20) DEFAULT NULL auto_increment PRIMARY KEY" }
+        types[:bigint_pk_64] = { :name => "bigint(64) DEFAULT NULL auto_increment PRIMARY KEY" }
+        types[:bigint_auto_64] = { :name => "bigint(64) DEFAULT NULL auto_increment" }
         types
       end