auto_migrations does not accept the name and unique options
Reported by toulmean | 2007-11-08 15:06:28 UTC
This instruction:
add_index "us_hits", ["user_id", "operatingsystem_id", "jdk_id", "product_id", "version_id", "nl_id"], :name => "user_id"
is failing, the name of the index is not user_id:
add_index("us_hits", ["user_id", "operatingsystem_id", "jdk_id", "product_id", "version_id", "nl_id"])
rake aborted!
Mysql::Error: Identifier name 'index_us_hits_on_user_id_and_operatingsystem_id_and_jdk_id_and_product_id_and_version_id_and_nl_id' is too long: CREATE INDEX `index_us_hits_on_user_id_and_operatingsystem_id_and_jdk_id_and_product_id_and_version_id_and_nl_id` ON us_hits (`user_id`, `operatingsystem_id`, `jdk_id`, `product_id`, `version_id`, `nl_id`)
Comments and changes to this ticket
-

toulmean 2007-11-08 15:08:23 UTC
From my investigations, it looks like line 107 of the auto_migrations file is failing.
I will provide a fix for this tomorrow, unless someone feels up to the challenge ?
-

Chris Wanstrath 2007-11-08 15:12:12 UTC
- Assigned user changed from Chris Wanstrath to PJ Hyett
- State changed from new to open
-

-

PJ Hyett 2007-11-09 10:12:09 UTC
- State changed from open to resolved
patch applied, thanks for making AM better.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป