mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 05:22:41 +00:00
Add MySQL FULLTEXT support.
Minor optimizations and testing added.
This commit is contained in:
parent
7135ff29fb
commit
36c99a358f
4 changed files with 64 additions and 37 deletions
|
@ -3114,7 +3114,7 @@ class DboSource extends DataSource {
|
|||
}
|
||||
|
||||
/**
|
||||
* Format indexes for create table
|
||||
* Format indexes for create table.
|
||||
*
|
||||
* @param array $indexes
|
||||
* @param string $table
|
||||
|
@ -3130,6 +3130,8 @@ class DboSource extends DataSource {
|
|||
} else {
|
||||
if (!empty($value['unique'])) {
|
||||
$out .= 'UNIQUE ';
|
||||
} elseif (!empty($value['type']) && strtoupper($value['type']) === 'FULLTEXT') {
|
||||
$out .= 'FULLTEXT ';
|
||||
}
|
||||
$name = $this->startQuote . $name . $this->endQuote;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue