Oh! Even better. Thx for the heads up.

On Mar 25, 2:10 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Hi, ro60
>
> There is no need in such setting. Just now you can set table engine to
> entire database or in settings.py per-connection with
>
> DATABASE_OPTIONS = {"init_command": "SET storage_engine=INNODB" }
>
> On Mar 25, 5:37 am, ro60 <[EMAIL PROTECTED]> wrote:
>
> > Wanted to see what everyone thinks about the idea of adding a patch to
> > allow for a setting that will automatically append a table engine type
> > to the create table statements generated by
> > django.core.management.sql.
>
> > I created a patch for my local sql.py and it seems to work well. It
> > consists of adding a  DATABASE_TABLE_ENGINE = 'InnoDB' variable to my
> > project's settings.py and then checking for that setting in
> > sql_model_create and many_to_many_sql_for_model and if it's there
> > appending on the table engine to the create table output.
>
> > I can imagine a few reasons why this may not fly but for someone who
> > uses mysql as their db this is really helpful. Anyway would love to
> > hear your thoughts on the approach and the idea. Also if anyone is
> > interested here is a svn diff for the changes I made to my local
> > sql.py.
>
> >http://www.ninjacipher.com/wp-content/uploads/2008/03/table-engine-sq...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to