@@ 234-242 (lines=9) @@ | ||
231 | /** |
|
232 | * {@inheritDoc} |
|
233 | */ |
|
234 | public function getBigIntTypeDeclarationSQL(array $field) |
|
235 | { |
|
236 | // SQLite autoincrement is implicit for INTEGER PKs, but not for BIGINT fields. |
|
237 | if ( ! empty($field['autoincrement'])) { |
|
238 | return $this->getIntegerTypeDeclarationSQL($field); |
|
239 | } |
|
240 | ||
241 | return 'BIGINT' . $this->_getCommonIntegerTypeDeclarationSQL($field); |
|
242 | } |
|
243 | ||
244 | /** |
|
245 | * {@inheritDoc} |
|
@@ 247-255 (lines=9) @@ | ||
244 | /** |
|
245 | * {@inheritDoc} |
|
246 | */ |
|
247 | public function getTinyIntTypeDeclarationSql(array $field) |
|
248 | { |
|
249 | // SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields. |
|
250 | if ( ! empty($field['autoincrement'])) { |
|
251 | return $this->getIntegerTypeDeclarationSQL($field); |
|
252 | } |
|
253 | ||
254 | return 'TINYINT' . $this->_getCommonIntegerTypeDeclarationSQL($field); |
|
255 | } |
|
256 | ||
257 | /** |
|
258 | * {@inheritDoc} |
|
@@ 260-268 (lines=9) @@ | ||
257 | /** |
|
258 | * {@inheritDoc} |
|
259 | */ |
|
260 | public function getSmallIntTypeDeclarationSQL(array $field) |
|
261 | { |
|
262 | // SQLite autoincrement is implicit for INTEGER PKs, but not for SMALLINT fields. |
|
263 | if ( ! empty($field['autoincrement'])) { |
|
264 | return $this->getIntegerTypeDeclarationSQL($field); |
|
265 | } |
|
266 | ||
267 | return 'SMALLINT' . $this->_getCommonIntegerTypeDeclarationSQL($field); |
|
268 | } |
|
269 | ||
270 | /** |
|
271 | * {@inheritDoc} |
|
@@ 273-281 (lines=9) @@ | ||
270 | /** |
|
271 | * {@inheritDoc} |
|
272 | */ |
|
273 | public function getMediumIntTypeDeclarationSql(array $field) |
|
274 | { |
|
275 | // SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields. |
|
276 | if ( ! empty($field['autoincrement'])) { |
|
277 | return $this->getIntegerTypeDeclarationSQL($field); |
|
278 | } |
|
279 | ||
280 | return 'MEDIUMINT' . $this->_getCommonIntegerTypeDeclarationSQL($field); |
|
281 | } |
|
282 | ||
283 | /** |
|
284 | * {@inheritDoc} |