From bce4871549f1852d9f9ae20a934a199c8bc307ce Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Fri, 8 Sep 2023 16:27:15 +1000 Subject: [PATCH] DEV: add date to the migration model sort key --- src/Schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema.js b/src/Schema.js index 5052d8c..cf449b4 100644 --- a/src/Schema.js +++ b/src/Schema.js @@ -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}) }