@@ -15,25 +15,25 @@ discard block |
||
| 15 | 15 | * @var string |
| 16 | 16 | **/ |
| 17 | 17 | protected $columns = [ |
| 18 | - 'int' => 'integer', |
|
| 19 | - 'smallint' => 'smallInteger', |
|
| 20 | - 'bigint' => 'bigInteger', |
|
| 21 | - 'char ' => 'string', |
|
| 22 | - 'varchar' => 'string', |
|
| 23 | - 'float' => 'float', |
|
| 24 | - 'double' => 'double', |
|
| 25 | - 'decimal' => 'decimal', |
|
| 26 | - 'tinyint' => 'boolean', |
|
| 27 | - 'date' => 'date', |
|
| 28 | - 'timestamp' => 'timestamp', |
|
| 29 | - 'datetime' => 'dateTime', |
|
| 30 | - 'longtext' => 'longText', |
|
| 31 | - 'mediumtext' => 'mediumText', |
|
| 32 | - 'text' => 'text', |
|
| 33 | - 'longblob' => 'binary', |
|
| 34 | - 'blob' => 'binary', |
|
| 35 | - 'enum' => 'enum', |
|
| 36 | - ]; |
|
| 18 | + 'int' => 'integer', |
|
| 19 | + 'smallint' => 'smallInteger', |
|
| 20 | + 'bigint' => 'bigInteger', |
|
| 21 | + 'char ' => 'string', |
|
| 22 | + 'varchar' => 'string', |
|
| 23 | + 'float' => 'float', |
|
| 24 | + 'double' => 'double', |
|
| 25 | + 'decimal' => 'decimal', |
|
| 26 | + 'tinyint' => 'boolean', |
|
| 27 | + 'date' => 'date', |
|
| 28 | + 'timestamp' => 'timestamp', |
|
| 29 | + 'datetime' => 'dateTime', |
|
| 30 | + 'longtext' => 'longText', |
|
| 31 | + 'mediumtext' => 'mediumText', |
|
| 32 | + 'text' => 'text', |
|
| 33 | + 'longblob' => 'binary', |
|
| 34 | + 'blob' => 'binary', |
|
| 35 | + 'enum' => 'enum', |
|
| 36 | + ]; |
|
| 37 | 37 | |
| 38 | 38 | protected $schema; |
| 39 | 39 | |
@@ -172,11 +172,11 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | $this->schema[$value['table_name']] = array( |
| 175 | - 'up' => $up, |
|
| 176 | - 'constraint' => $Constraint, |
|
| 177 | - 'constraint_down' => $ConstraintDown, |
|
| 178 | - 'down' => $down, |
|
| 179 | - ); |
|
| 175 | + 'up' => $up, |
|
| 176 | + 'constraint' => $Constraint, |
|
| 177 | + 'constraint_down' => $ConstraintDown, |
|
| 178 | + 'down' => $down, |
|
| 179 | + ); |
|
| 180 | 180 | }//end foreach |
| 181 | 181 | |
| 182 | 182 | return $this; |
@@ -27,27 +27,27 @@ |
||
| 27 | 27 | * @var array |
| 28 | 28 | **/ |
| 29 | 29 | protected $selects = array( |
| 30 | - 'column_name as Field', |
|
| 31 | - 'column_type as Type', |
|
| 32 | - 'is_nullable as null', |
|
| 33 | - 'column_key as Key', |
|
| 34 | - 'column_default as Default', |
|
| 35 | - 'extra as Extra', |
|
| 36 | - 'data_type as Data_Type', |
|
| 37 | - ); |
|
| 30 | + 'column_name as Field', |
|
| 31 | + 'column_type as Type', |
|
| 32 | + 'is_nullable as null', |
|
| 33 | + 'column_key as Key', |
|
| 34 | + 'column_default as Default', |
|
| 35 | + 'extra as Extra', |
|
| 36 | + 'data_type as Data_Type', |
|
| 37 | + ); |
|
| 38 | 38 | /** |
| 39 | 39 | * Select fields from constraints. |
| 40 | 40 | * |
| 41 | 41 | * @var array |
| 42 | 42 | **/ |
| 43 | 43 | protected $constraints = array( |
| 44 | - 'key_column_usage.table_name as Table', |
|
| 45 | - 'key_column_usage.column_name as Field', |
|
| 46 | - 'key_column_usage.referenced_table_name as ON', |
|
| 47 | - 'key_column_usage.referenced_column_name as References', |
|
| 48 | - 'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate', |
|
| 49 | - 'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete', |
|
| 50 | - ); |
|
| 44 | + 'key_column_usage.table_name as Table', |
|
| 45 | + 'key_column_usage.column_name as Field', |
|
| 46 | + 'key_column_usage.referenced_table_name as ON', |
|
| 47 | + 'key_column_usage.referenced_column_name as References', |
|
| 48 | + 'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate', |
|
| 49 | + 'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete', |
|
| 50 | + ); |
|
| 51 | 51 | |
| 52 | 52 | protected function getTables() |
| 53 | 53 | { |