Skip to content

Commit

Permalink
Properties underscores in name can now be indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
ewrayjohnson committed Apr 13, 2022
1 parent 04edca5 commit 337eebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ function mixinMigration(PostgreSQL) {
}) || [];
const sql = [];
const ai = {};
const propNameRegEx = new RegExp('^' + self.table(model) + '_([^_]+)_idx');
const propNameRegEx = new RegExp('^' + self.table(model) + '_(.*)(?:_idx)$');

if (actualIndexes) {
actualIndexes.forEach(function(i) {
Expand Down

0 comments on commit 337eebe

Please sign in to comment.