|
34 | 34 | * Implements the SQLite Server specific schema, supporting SQLite 3.3.0 or higher.
|
35 | 35 | *
|
36 | 36 | * @psalm-type Column = array<array-key, array{seqno:string, cid:string, name:string}>
|
37 |
| - * |
38 | 37 | * @psalm-type NormalizePragmaForeignKeyList = array<
|
39 | 38 | * string,
|
40 | 39 | * array<
|
|
51 | 50 | * }
|
52 | 51 | * >
|
53 | 52 | * >
|
54 |
| - * |
55 | 53 | * @psalm-type PragmaForeignKeyList = array<
|
56 | 54 | * string,
|
57 | 55 | * array{
|
|
65 | 63 | * on_delete:string
|
66 | 64 | * }
|
67 | 65 | * >
|
68 |
| - * |
69 | 66 | * @psalm-type PragmaIndexInfo = array<array-key, array{seqno:string, cid:string, name:string}>
|
70 |
| - * |
71 | 67 | * @psalm-type PragmaIndexList = array<
|
72 | 68 | * array-key,
|
73 | 69 | * array{seq:string, name:string, unique:string, origin:string, partial:string}
|
74 | 70 | * >
|
75 |
| - * |
76 | 71 | * @psalm-type PragmaTableInfo = array<
|
77 | 72 | * array-key,
|
78 | 73 | * array{cid:string, name:string, type:string, notnull:string, dflt_value:string|null, pk:string}
|
@@ -393,7 +388,7 @@ protected function findConstraints(TableSchemaInterface $table): void
|
393 | 388 | $fk = $table->getForeignKeys();
|
394 | 389 |
|
395 | 390 | if (!isset($fk[$id])) {
|
396 |
| - $table->foreignKey($id, ([$foreignKey['table'], $foreignKey['from'] => $foreignKey['to']])); |
| 391 | + $table->foreignKey($id, [$foreignKey['table'], $foreignKey['from'] => $foreignKey['to']]); |
397 | 392 | } else {
|
398 | 393 | /** composite FK */
|
399 | 394 | $table->compositeFK($id, $foreignKey['from'], $foreignKey['to']);
|
@@ -622,7 +617,7 @@ private function createColumnSchema(): ColumnSchemaInterface
|
622 | 617 | private function getPragmaForeignKeyList(string $tableName): array
|
623 | 618 | {
|
624 | 619 | return $this->db->createCommand(
|
625 |
| - 'PRAGMA FOREIGN_KEY_LIST(' . $this->db->getQuoter()->quoteSimpleTableName(($tableName)) . ')' |
| 620 | + 'PRAGMA FOREIGN_KEY_LIST(' . $this->db->getQuoter()->quoteSimpleTableName($tableName) . ')' |
626 | 621 | )->queryAll();
|
627 | 622 | }
|
628 | 623 |
|
|
0 commit comments