Method | Description | |
---|---|---|
__construct ( Ruckusing_Adapter_MySQL_Base $adapter, string $name, array $options = [] ) : Ruckusing_Adapter_MySQL_TableDefinition | Creates an instance of Ruckusing_Adapters_MySQL_Adapter | |
column ( string $column_name, string $type, array $options = [] ) | Create a column | |
finish ( boolean $wants_sql = false ) : boolean | string | Table definition | |
timestamps ( string $created_column_name = "created_at", string $updated_column_name = "updated_at" ) | Shortcut to create timestamps columns (default created_at, updated_at) |
Method | Description | |
---|---|---|
columns_to_str ( ) : string | get all columns | |
init_sql ( string $name, array $options ) | Init create sql | |
keys ( ) : string | Get all primary keys |
public __construct ( Ruckusing_Adapter_MySQL_Base $adapter, string $name, array $options = [] ) : Ruckusing_Adapter_MySQL_TableDefinition | ||
$adapter | Ruckusing_Adapter_MySQL_Base | the current adapter |
$name | string | the table name |
$options | array | the options |
return | Ruckusing_Adapter_MySQL_TableDefinition |
public timestamps ( string $created_column_name = "created_at", string $updated_column_name = "updated_at" ) | ||
$created_column_name | string | Created at column name |
$updated_column_name | string | Updated at column name |