Commit c8706185 authored by Steve Müller's avatar Steve Müller

fix composite primary key introspection on Sqlite

parent ba4ab893
......@@ -167,7 +167,7 @@ class SqliteSchemaManager extends AbstractSchemaManager
$stmt = $this->_conn->executeQuery("PRAGMA TABLE_INFO ('$tableName')");
$indexArray = $stmt->fetchAll(\PDO::FETCH_ASSOC);
foreach ($indexArray as $indexColumnRow) {
if ($indexColumnRow['pk'] == "1") {
if ($indexColumnRow['pk'] != "0") {
$indexBuffer[] = array(
'key_name' => 'primary',
'primary' => true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment