diff --git a/lib/Cake/Database/Schema/PostgresSchema.php b/lib/Cake/Database/Schema/PostgresSchema.php index 278e3388f07..a6b2d0bf282 100644 --- a/lib/Cake/Database/Schema/PostgresSchema.php +++ b/lib/Cake/Database/Schema/PostgresSchema.php @@ -231,12 +231,12 @@ public function convertIndexDescription(Table $table, $row) { 'type' => $type, 'columns' => $columns ]); - } else { - $table->addIndex($name, [ - 'type' => $type, - 'columns' => $columns - ]); + return; } + $table->addIndex($name, [ + 'type' => $type, + 'columns' => $columns + ]); } /** diff --git a/lib/Cake/Database/Schema/SqliteSchema.php b/lib/Cake/Database/Schema/SqliteSchema.php index da214fbbdde..cda1cada614 100644 --- a/lib/Cake/Database/Schema/SqliteSchema.php +++ b/lib/Cake/Database/Schema/SqliteSchema.php @@ -155,7 +155,7 @@ public function describeIndexSql($table) { /** * Convert an index into the abstract description. * - * Since Sqlite does not have a way to get metadata about all indexes at once, + * Since SQLite does not have a way to get metadata about all indexes at once, * additional queries are done here. Sqlite constraint names are not * stable, and the names for constraints will not match those used to create * the table. This is a limitation in Sqlite's metadata features.