As of RedBeanPHP 5.6 you can use data definition language templates to make sure RedBeanPHP constructs its tables according to your specifications. For instance, if you want to construct your MySQL tables using the option ROW_FORMAT=DYNAMIC you can alter the DDL template for table creation like this:
$writer->setDDLTemplate( 'createTable', '*',
$writer->getDDLTemplate('createTable', '*') . ' ROW_FORMAT=DYNAMIC '
Currently, RedBeanPHP supports overriding the following DDL templates: 'createTable' (used by RedBeanPHP for table creation), 'addColumn' (used by RedBeanPHP to add a new column to a table on-the-fly) and 'widenColumn' (used by RedBeanPHP to adjust the column to hold a different kind of data).
back to main menu
Performance monitor: this page has been generated in 0.028815984725952s. Is the performance lacking? Please drop me an e-mail to notify me!