File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
addField
— Add a field into the table, the fields will be added into the table in the order they have been entered
Name | Description |
---|---|
$strColumnName | n/a |
$strDataType | n/a |
[$mxdCharLength = null] | n/a |
[$strDefaultValue = null] | n/a |
[$blNullable = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strColumnName = 'foo';
$strDataType = 'foo';
$mxdCharLength = null;
$strDefaultValue = null;
$blNullable = false;
//Call the function addField with the example vars
$resTableStructure = new \Twist\Core\Models\Database\TableStructure();
$resTableStructure -> addField($strColumnName, $strDataType, $mxdCharLength, $strDefaultValue, $blNullable);