@strapi/database 5.0.1 → 5.0.2-beta.0

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/dist/index.js CHANGED
@@ -643,7 +643,7 @@ class MysqlSchemaInspector {
643
643
  columns: [index2.Column_name],
644
644
  name: index2.Key_name
645
645
  };
646
- if (!index2.Non_unique) {
646
+ if (!index2.Non_unique || index2.Non_unique === "0") {
647
647
  indexInfo.type = "unique";
648
648
  }
649
649
  ret[index2.Key_name] = indexInfo;