@sqlanvil/cli 1.26.2 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +20 -4
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -50646,7 +50646,7 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
|
|
|
50646
50646
|
.filter(validationQuery => !!validationQuery.query);
|
|
50647
50647
|
}
|
|
50648
50648
|
|
|
50649
|
-
const version = "1.
|
|
50649
|
+
const version = "1.27.0";
|
|
50650
50650
|
const dataformVersion = "3.0.61";
|
|
50651
50651
|
|
|
50652
50652
|
async function build(compiledGraph, runConfig, dbadapter) {
|
|
@@ -54918,9 +54918,25 @@ async function migrateDataform(opts) {
|
|
|
54918
54918
|
`# Generated by sqlanvil migrate-dataform: scaffold columnTypes for every converted\n` +
|
|
54919
54919
|
`# declaration (${introspectCommands.length} commands). Requires BigQuery read access\n` +
|
|
54920
54920
|
`# (gcloud auth application-default login). Re-runnable; then commit the changes.\n` +
|
|
54921
|
-
|
|
54922
|
-
|
|
54923
|
-
|
|
54921
|
+
`# Failures (e.g. stale declarations for dropped tables) are collected and\n` +
|
|
54922
|
+
`# summarized at the end instead of aborting the run.\n` +
|
|
54923
|
+
`failures=0\n` +
|
|
54924
|
+
`failed=""\n` +
|
|
54925
|
+
`run() {\n` +
|
|
54926
|
+
` "$@" || {\n` +
|
|
54927
|
+
` failures=$((failures + 1))\n` +
|
|
54928
|
+
` failed="\${failed}\n $*"\n` +
|
|
54929
|
+
` printf 'FAILED: %s\\n' "$*" >&2\n` +
|
|
54930
|
+
` }\n` +
|
|
54931
|
+
`}\n` +
|
|
54932
|
+
introspectCommands.map(c => `run ${c}`).join("\n") +
|
|
54933
|
+
`\n` +
|
|
54934
|
+
`if [ "$failures" -gt 0 ]; then\n` +
|
|
54935
|
+
` printf '\\n%s introspect command(s) failed:%s\\n' "$failures" "$failed" >&2\n` +
|
|
54936
|
+
` printf 'Likely stale declarations (table dropped/renamed) - verify and remove them.\\n' >&2\n` +
|
|
54937
|
+
` exit 1\n` +
|
|
54938
|
+
`fi\n` +
|
|
54939
|
+
`printf '\\nAll introspect commands succeeded.\\n'\n`);
|
|
54924
54940
|
report.files.push({
|
|
54925
54941
|
file: "scripts/introspect_all.sh",
|
|
54926
54942
|
action: "generated",
|