@@ -28,9 +28,9 @@ |
||
28 | 28 | return (new class($this->DBDriver, $this->dialect) extends StatementAbstract implements CreateDatabaseInterface{ |
29 | 29 | use CharsetTrait, IfNotExistsTrait, NameTrait; |
30 | 30 | |
31 | - public function ifNotExists():CreateDatabaseInterface{return $this->_ifNotExists();} |
|
32 | - public function name(string $dbname = null):CreateDatabaseInterface{return $this->_name($dbname);} |
|
33 | - public function collate(string $collation):CreateDatabaseInterface{return $this->_collate($collation);} |
|
31 | + public function ifNotExists():CreateDatabaseInterface{return $this->_ifNotExists(); } |
|
32 | + public function name(string $dbname = null):CreateDatabaseInterface{return $this->_name($dbname); } |
|
33 | + public function collate(string $collation):CreateDatabaseInterface{return $this->_collate($collation); } |
|
34 | 34 | |
35 | 35 | public function sql():string{ |
36 | 36 |
@@ -23,10 +23,10 @@ |
||
23 | 23 | * |
24 | 24 | * @return \chillerlan\Database\Query\SelectInterface |
25 | 25 | public function from(array $expressions):SelectInterface{ |
26 | - * // @todo: index hint |
|
27 | - * |
|
26 | + * // @todo: index hint |
|
27 | + * |
|
28 | 28 | * return $this; |
29 | - * } |
|
29 | + * } |
|
30 | 30 | */ |
31 | 31 | |
32 | 32 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $type = strtoupper(trim($type)); |
55 | 55 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
56 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
56 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
57 | 57 | |
58 | 58 | $field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes) |
59 | 59 | ? $type.'('. $length . ')' |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | class CreateTable extends CreateTableAbstract{ |
20 | 20 | use CharsetTrait; |
21 | 21 | |
22 | - public function collate(string $collation):CreateTableInterface{return $this->_collate($collation);} |
|
22 | + public function collate(string $collation):CreateTableInterface{return $this->_collate($collation); } |
|
23 | 23 | |
24 | 24 | public function sql():string{ |
25 | 25 | # var_dump($this->cols); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
57 | 57 | |
58 | 58 | $field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes) |
59 | - ? $type.'('. $length . ')' |
|
59 | + ? $type.'('.$length.')' |
|
60 | 60 | : $type; |
61 | 61 | |
62 | 62 | if($attribute){ |