Skip to content

Commit 78d0457

Browse files
update dist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e09ce2e commit 78d0457

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

state/deploy/dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10509,12 +10509,16 @@ await (async () => {
1050910509
rn("Flyway is not installed or not in PATH. Run red-gate/setup-flyway before this action.");
1051010510
return;
1051110511
}
10512+
if (e.edition !== "enterprise") {
10513+
rn(`State-based deployments require Flyway Enterprise edition (current edition: ${e.edition}).`);
10514+
return;
10515+
}
1051210516
let t = En();
1051310517
if (!t.targetEnvironment && !t.targetUrl) {
1051410518
rn("Either \"target-environment\" or \"target-url\" must be provided for Flyway to connect to a database.");
1051510519
return;
1051610520
}
10517-
if (Dn(t), e.edition === "enterprise") if (t.skipDriftCheck) on("Skipping drift check: \"skip-drift-check\" set to true"), t.saveSnapshot = !0;
10521+
if (Dn(t), t.skipDriftCheck) on("Skipping drift check: \"skip-drift-check\" set to true"), t.saveSnapshot = !0;
1051810522
else {
1051910523
let { driftDetected: e, comparisonSupported: n } = await On(t);
1052010524
if (e) {
@@ -10523,7 +10527,6 @@ await (async () => {
1052310527
}
1052410528
t.saveSnapshot = n;
1052510529
}
10526-
else on(`Skipping drift check as edition is not Enterprise (actual edition: ${e.edition}).`);
1052710530
await wn(t);
1052810531
} catch (e) {
1052910532
e instanceof Error ? rn(e.message) : rn(String(e));

state/prepare/dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10630,12 +10630,16 @@ await (async () => {
1063010630
rn("Flyway is not installed or not in PATH. Run red-gate/setup-flyway before this action.");
1063110631
return;
1063210632
}
10633+
if (e.edition !== "enterprise") {
10634+
rn(`State-based deployments require Flyway Enterprise edition (current edition: ${e.edition}).`);
10635+
return;
10636+
}
1063310637
let t = Hn();
1063410638
if (!t.targetEnvironment && !t.targetUrl) {
1063510639
rn("Either \"target-environment\" or \"target-url\" must be provided for Flyway to connect to a database.");
1063610640
return;
1063710641
}
10638-
if (Un(t), e.edition === "enterprise") if (t.skipDriftCheck) sn("Skipping drift check: \"skip-drift-check\" set to true");
10642+
if (Un(t), t.skipDriftCheck) sn("Skipping drift check: \"skip-drift-check\" set to true");
1063910643
else {
1064010644
let { driftDetected: e } = await Wn(t);
1064110645
if (e) {
@@ -10646,7 +10650,6 @@ await (async () => {
1064610650
on("Drift detected. Continuing because fail-on-drift is disabled.");
1064710651
}
1064810652
}
10649-
else sn(`Skipping drift check as edition is not Enterprise (actual edition: ${e.edition}).`);
1065010653
await jn(t, e.edition);
1065110654
let { scriptPath: n } = await Bn(t);
1065210655
if (!n) {

0 commit comments

Comments
 (0)