mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
meilisearch search descr field configurable
This commit is contained in:
@@ -429,5 +429,16 @@ class NexusDB
|
||||
|
||||
}
|
||||
|
||||
public static function hasIndex($table, $indexName): bool
|
||||
{
|
||||
$results = self::select("show index from $table");
|
||||
foreach ($results as $item) {
|
||||
if ($item['Key_name'] == $indexName) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user