You certainly can, but that would be less modularized, and it wouldn't
be very portable (you could only use it on one type of database).

What you could do is setup a "first run" controller that people call
when they're installing your application.  This controller could use no
models.  To get a reference to the database and add your tables, do the
following:

$db =& ConnectionManager::getDataSource('default');
$db->query($bigCreateTableQueryHere);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to