Applying patch suggested by @guilhermeblanco for SQLite's auto-inc integer PKs

See symfony/symfony#10238

Ping @guilhermeblanco