We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 917b150 commit 8b4b16aCopy full SHA for 8b4b16a
1 file changed
system/Database/SQLite3/Table.php
@@ -240,6 +240,14 @@ protected function createTable()
240
241
$this->forge->addField($fields);
242
243
+ $fieldNames = array_keys($fields);
244
+
245
+ $this->keys = array_filter(
246
+ $this->keys,
247
+ static fn ($index) => count(array_intersect($index['fields'], $fieldNames))
248
+ === count($index['fields'])
249
+ );
250
251
// Unique/Index keys
252
if (is_array($this->keys)) {
253
foreach ($this->keys as $key) {
0 commit comments