On Feb 15, 9:07 pm, cult hero <[email protected]> wrote: > How do I set the default table type to InnoDB in MySQL as a default in > Merb? (I've asked this to the Merb list as well, but DataMapper is > what most of them are familiar with.) > > The release notes for 2.10 give the following command: > > Sequel::MySQL.default_engine = 'InnoDB' > > However, as the app I am building is theoretically database > independent I don't want to put them in my Migrations. Is there an > option in like Merb::Plugins.config[:sequel] I can set?
I'd do something like this in your migration files (or have your migrations require a file that does this): Sequel::MySQL.default_engine = 'InnoDB' if defined?(Sequel::MySQL) I'm not sure how merb-sequel runs the migrations, but if you do the above, it will work with the sequel command line tool (sequel -m). I have the philosophy that your migrations should be as independent from the rest of your app as possible, so I don't recommend trying to set the above in the merb environment, even if you can get it to work that way. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
