@axiosleo/orm-mysql 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/orm-mysql.js +1 -1
- package/package.json +1 -1
- package/src/builder.js +3 -1
package/bin/orm-mysql.js
CHANGED
package/package.json
CHANGED
package/src/builder.js
CHANGED
|
@@ -465,7 +465,9 @@ class ManageSQLBuilder extends Builder {
|
|
|
465
465
|
visible: 'boolean'
|
|
466
466
|
});
|
|
467
467
|
|
|
468
|
-
|
|
468
|
+
let str = options.uniqIndex === true ? 'CREATE UNIQUE INDEX' : 'CREATE INDEX';
|
|
469
|
+
|
|
470
|
+
return _render(str + ' `${index_name}` ON `${table_name}` (${column_names}) ${visible}', {
|
|
469
471
|
index_name: options.name,
|
|
470
472
|
table_name: options.table,
|
|
471
473
|
visible: options.visible === false ? 'INVISIBLE' : 'VISIBLE',
|