diff --git a/src/DDLQueryBuilder.php b/src/DDLQueryBuilder.php index 10221199..96c19eeb 100644 --- a/src/DDLQueryBuilder.php +++ b/src/DDLQueryBuilder.php @@ -84,7 +84,7 @@ public function createIndex( string $indexType = null, string $indexMethod = null ): string { - return 'CREATE ' . ($indexType !== null ? "$indexType " : '') . 'INDEX ' + return 'CREATE ' . ($indexType !== null ? $indexType . ' ' : '') . 'INDEX ' . $this->quoter->quoteTableName($name) . ($indexMethod !== null ? " USING $indexMethod" : '') . ' ON ' . $this->quoter->quoteTableName($table)