Skip to content

Commit

Permalink
add a secondary order by name for migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tracehelms committed Jan 2, 2024
1 parent 557df84 commit c46567e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class Migrator {
.withPlugin(this.#schemaPlugin)
.selectFrom(this.#migrationTable)
.select('name')
.orderBy('timestamp')
.orderBy(['timestamp', 'name'])
.execute()

return executedMigrations.map((it) => it.name)
Expand Down

0 comments on commit c46567e

Please sign in to comment.