This project is archived and is in readonly mode.
[patch] Unique index name for schema_migrations table
-
Pratik
LH seems to be messing up the attachments lately. Could you please reupload the patch ?
Thanks.
-
Rudolf Gavlas
Sure. I'll also paste it here verbatim, it is not big at all. I am hitting another LH bug probably -- I can't open the page with formatting help right now, so here it is FWIW just pasted without any formatting:
--- lib/active_record/connection_adapters/abstract/schema_statements.rb-orig 2009-07-12 15:47:09.000000000 +0200 +++ lib/active_record/connection_adapters/abstract/schema_statements.rb 2009-07-12 15:48:39.000000000 +0200 @@ -321,7 +321,7 @@
schema_migrations_table.column :version, :string, :null => false end add_index sm_table, :version, :unique => true,-
:name => 'unique_schema_migrations' -
:name => Base.table_name_prefix + 'unique_schema_migrations' + Base.table_name_suffix # Backwards-compatibility: if we find schema_info, assume we've # migrated up to that point:
-
-
Rudolf Gavlas
Now I noticed ticket #1543 index "unique_schema_migrations" should use table prefix/suffix, which makes this one a duplicate. This problem report can be closed.
-
Dan Pickett
- Assigned user set to Ryan Bigg
-
Ryan Bigg
- State changed from new to duplicate
