Code
$dict = &NewDataDictionary($dbconn);
// etc...etc...
$sqlarray = $dict->AlterColumnSQL($Exampletable,$flds);
// etc...etc...
$sqlarray = $dict->AlterColumnSQL($Exampletable,$flds);
...or was it introduced in .760?
Show your support for Zikula! Sign up at Github account and watch the Core project!
But of course you loose non Mysql compatibility.
Database specific table options can be defined also using the name of the database type as the array key. In the following example, create the table as ISAM with MySQL, and store the table in the "users" tablespace if using Oracle. And because we specified REPLACE, drop the table first.
$taboptarray = array('mysql' => 'TYPE=ISAM', 'oci8' => 'tablespace users', 'REPLACE');
You can also define foreign key constraints. The following is syntax for postgresql:
$taboptarray = array('constraints' => ', FOREIGN KEY (col1) REFERENCES reftable (refcol)');