On Feb 16, 2:24 pm, Alex Gaynor <[email protected]> wrote: > On Mon, Feb 16, 2009 at 1:37 AM, jfmxl <[email protected]> wrote: > > > Hi, > > > I read through the tutorials and thank you very much! They are well > > designed and very helpful. > > > I noticed that the models' database definitions created using MySQL > > always create MyISAM tables, but to use functional constraints on > > foreign keys one must use InnoDB tables in MySQL. > > > Is there someway to change the table type created from MyISAM to > > MyInnoDB with MySQL? > > By adding: > > DATABASE_OPTIONS = { > "init_command": "SET storage_engine=INNODB", > > } > > you can get innodb tables by default. > > Alex
Thanks very much! Now for primary keys using multiple fields... but I'll open another thread. > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

