From b45e514cb1668e731c0be8231c5a58a58a2d03fe Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Tue, 2 Nov 2021 16:11:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevented=20unexecuted=20migrati?= =?UTF-8?q?ons=20from=20being=20rolled=20back?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/knex-migrator/issues/241 Previous to this bump if a migration was occuring across multiple versions and a migration was to error, we would incorrectly rollback migrations which had not run yet. For example - assume we are on v1.0.0 and migrating to v1.3.0, and there are migrations for v1.1.0, v1.2.0 & v1.3.0. In the case that a migration in v1.2.0 fails, we will still attempt to rollback migrations from v1.3.0. This is no longer the case, and we will only roll back migrations which have already been run. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3283b5b329..d728e26b3e 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "juice": "8.0.0", "keypair": "1.0.4", "knex": "0.21.21", - "knex-migrator": "4.1.0", + "knex-migrator": "4.1.1", "lodash": "4.17.21", "luxon": "2.0.2", "mailgun-js": "0.22.0", diff --git a/yarn.lock b/yarn.lock index f4932b5c18..8e2c794453 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6850,10 +6850,10 @@ klona@^2.0.3: resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0" integrity sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA== -knex-migrator@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/knex-migrator/-/knex-migrator-4.1.0.tgz#8e161a9e9e193f0eb0b4e60d9865b9bbb39c0021" - integrity sha512-wl/EuwZhKztWS4v4rMVPsfJD2SxFeNQFkeAoUY/wSThHBFGH5bTpegyVd6QYl3f8EGa0SIy5LWseHZ1c63EnWA== +knex-migrator@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/knex-migrator/-/knex-migrator-4.1.1.tgz#6415e96fc5bec1bc2aaa3be43e2c4a5ff66a967f" + integrity sha512-OgFDKCZT8Sx46HDhvEmc4EgxfM5AzwzjYbEUk+cJdtOW/ohxoIXa4E2eojvZ1SIVUr9C6GEtsAd0tZsF4bpNAg== dependencies: bluebird "3.7.2" commander "5.1.0"