Skip to content

Commit

Permalink
DEV: add date to the migration model sort key
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Sep 8, 2023
1 parent fa3d372 commit bce4871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class Schema {
status: {type: 'string'},
})
if (primary.sort) {
fields[primary.sort] = {type: 'string', value: `${MigrationKey}:\${version}`}
fields[primary.sort] = {type: 'string', value: `${MigrationKey}:\${version}:\${date}`}
}
this.models[MigrationModel] = new Model(this.table, MigrationModel, {fields, indexes})
}
Expand Down

0 comments on commit bce4871

Please sign in to comment.