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 Oct 7, 2020
1 parent f97d755 commit 8fd4470
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 @@ -866,7 +866,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 8fd4470

Please sign in to comment.