$_name
$_name :
__construct(string $name, \Horde_Db_Adapter_Base_Schema $base, array $options = array())
Constructor.
string | $name | |
\Horde_Db_Adapter_Base_Schema | $base | |
array | $options |
column( $name, string $type, array $options = array()) : \Horde_Db_Adapter_Base_TableDefinition
Adds a new column to the table definition.
Examples:
// Assuming $def is an instance of Horde_Db_Adapter_Base_TableDefinition
$def->column('granted', 'boolean'); // => granted BOOLEAN
$def->column('picture', 'binary', 'limit' => 4096); // => picture BLOB(4096)
$def->column('sales_stage', 'string', array('limit' => 20, 'default' => 'new', 'null' => false)); // => sales_stage VARCHAR(20) DEFAULT 'new' NOT NULL
$name | ||
string | $type | Column type, one of: autoincrementKey, string, text, integer, float, datetime, timestamp, time, date, binary, boolean. |
array | $options | Column options:
|
This object.