Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

add_index_with_key_lengths_in_mysql

#399

This patch allows the use of specified key lengths when using add_index in a migration with mysql


# creates index with both key lengths equal to 8
add_index("people", ["memo", "name"], :key_length => 8)

# creates index with only memo key length set to 8
add_index("people", ["memo", "name"], :key_length => {"memo" => 8})

Reported by jnsears · June 12th, 2008 @ 09:56 AM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to incomplete

    The patch needs to test for generated sql as well.

    Thanks.

    June 12th, 2008 @ 09:59 AM

  2. jnsears
    jnsears

    Sorry, but my first patch here. Mind pointing me to an example of this?

    Thanks.

    June 12th, 2008 @ 10:03 AM

  3. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from incomplete to duplicate
    • Tag set to activerecord, enhancement, migrations, patch, tested

    Duplicate of #1852 Patch to add index length support, which is more complete & actively being pursued

    August 3rd, 2009 @ 07:19 PM

  4. af001
    af001
    • Importance changed from to

    私の中で、総合評価のとっても低いアバアバクロホリスタークロ銀座店。アバクロは大好きなんですけどね。一昨日の東京駅付近での打ち合わせの後、散歩がてら久々に行ってきました。そしたらビックリ!相変わらアバクロず、踊っているだけの店員さんとかもいましたが、

    May 5th, 2011 @ 03:00 AM