File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
autoIncrement
— Set a field to be autoincrement
Name | Description |
---|---|
$strField | n/a |
[$intStartNumber = 1] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strField = 'foo';
$intStartNumber = 1;
//Call the function autoIncrement with the example vars
$resTableStructure = new \Twist\Core\Models\Database\TableStructure();
$resTableStructure -> autoIncrement($strField, $intStartNumber);