Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected function loadTableIndexes(string $tableName): array

/** @psalm-var array[] $indexes */
$indexes = array_map(array_change_key_case(...), $indexes);
$indexes = DbArrayHelper::index($indexes, null, ['name']);
$indexes = DbArrayHelper::arrange($indexes, ['name']);
$result = [];

/**
Expand Down Expand Up @@ -843,7 +843,7 @@ private function loadTableConstraints(string $tableName, string $returnType): ar

/** @psalm-var array[][] $constraints */
$constraints = array_map(array_change_key_case(...), $constraints);
$constraints = DbArrayHelper::index($constraints, null, ['type', 'name']);
$constraints = DbArrayHelper::arrange($constraints, ['type', 'name']);

$result = [
self::PRIMARY_KEY => null,
Expand Down
Loading