Commit 3b6119c8 authored by Sergey Zhuravel's avatar Sergey Zhuravel

Sqlite and php5.5 returns "2" for second column in primary key

parent f33d4206
......@@ -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