diff --git a/src/Migrations/Mixins/Migrate.js b/src/Migrations/Mixins/Migrate.js index b68f9505..0ba017f6 100644 --- a/src/Migrations/Mixins/Migrate.js +++ b/src/Migrations/Mixins/Migrate.js @@ -244,7 +244,7 @@ Migrate._mapMigrationsToActions = function (migrationsList, direction) { * @private */ Migrate._getMigratedFiles = function () { - return this.database.select('name').from(this.migrationsTable).pluck('name') + return this.database.select('name').from(this.migrationsTable).orderBy('name').pluck('name') } /** @@ -261,6 +261,7 @@ Migrate._getFilesTillBatch = function (batch) { .select('name') .from(this.migrationsTable) .where('batch', '>', batch) + .orderBy('name') .pluck('name') }