implements Phalcon\Db\ColumnInterface
Allows to define columns to be used on create or alter table operations
use Phalcon\Db\Column as Column; //column definition $column = new Column("id", array( "type" => Column::TYPE_INTEGER, "size" => 10, "unsigned" => true, "notNull" => true, "autoIncrement" => true, "first" => true )); //add column to existing table $connection->addColumn("robots", null, $column);
Column’s name
Schema which table related is
Column data type
Column data type reference
Column data type values
Integer column size
Integer column number scale
Default column value
Phalcon\Db\Column constructor
Returns true if number column is unsigned
Not null
Column is part of the primary key?
Auto-Increment
Check whether column have an numeric type
Check whether column have first position in table
Check whether field absolute to position in table
Returns the type of bind handling
Restores the internal state of a Phalcon\Db\Column object
Check whether column has default value
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Db_Column.html