kla/php-activerecord — Issue #183: SQLiteAdapter auto_increment failing
Author: thejustinwalsh
Created: 2012-01-24 17:50:04+00:00
State: open

The SQLite adapter is checking the auto_increment flag against an all uppercase version of the word INTEGER, when the standard inflector is calling strtolower on the column names in the variablize function. The propused fix is below, SQLite adapter line 48.

```php
$c->auto_increment	= $column['type'] == 'INTEGER' && $c->pk;
```

```php
$c->auto_increment	= $column['type'] == 'integer' && $c->pk;
```