On Mon, Apr 21, 2008 at 7:32 PM, Dr.T <[EMAIL PROTECTED]> wrote:

>  Is it possible to suppress the generation of create index statements
>  by Elixir for foreign keys?

ManyToOne(..., column_kwargs=dict(index=False))

We probably should provide a gobal setting for that though.

>  (Unfortunately the default naming scheme often generates index names
>  which are too long for Oracle.)
>
>  One could then use the SQLAlchemy Index statement to explicitly create
>  the appropriate foreign key indexes and specify shorter index names?

Should be possible. But we should really provide a way to fix that
problem. An optional callable which would generate the index name
might do the trick.

Would you care to implement a patch for this or at least add a ticket
for it in our trac?
-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to