Hi!

I'm currently looking into a possibility to define per Model which MySQL 
Storage Engine it should use for creating the table. This would need a new 
option called 'db_table_option' for the Model.

Not only for MySQL would this be handy, for other backends as well. I think 
for PostgreSQL the inheritance feature would need this too.

There has been discussion that you can set the default engine server wide, 
and you can set it per session as well. But that's in lots of cases not what 
people want and need.

For example, following should be possible:

CREATE TABLE t1 ( id int ) %db_table_options%;

For this to work, we need a change to 'management.py' in the 
_get_sql_model_create(app):

     try:
         full_statement.append(') %s ;' % opts.db_table_options)
     except:
         full_statement.append(');')

But I guess there are more things to change to make this work correctly.. 
I'm still trying to figure that out :)

What you guys and girls think?

Cheers,

Geert

-- 
Geert Vanderkelen
http://some-abstract-type.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to