Updates
This commit is contained in:
@@ -47,7 +47,11 @@ export default async function handleIndexescreateDbFromSchema({
|
||||
* doesn't exist in MYSQL db
|
||||
*/
|
||||
const queryString = `CREATE${
|
||||
indexType == "full_text" ? " FULLTEXT" : ""
|
||||
indexType == "full_text"
|
||||
? " FULLTEXT"
|
||||
: indexType == "vector"
|
||||
? " VECTOR"
|
||||
: ""
|
||||
} INDEX \`${alias}\` ON \`${dbFullName}\`.\`${tableName}\`(${indexTableFields
|
||||
?.map((nm) => nm.value)
|
||||
.map((nm) => `\`${nm}\``)
|
||||
|
||||
Reference in New Issue
Block a user