count the schema tables instead of printing "?"
The Schema section read ${SCHEMA_TABLES:-?} and nothing ever assigned it, so it
announced "? tables" — which reads as "the count could not be determined" rather
than "nobody set this". schema_table_count existed in lib/build.sh and was never
called.
Counted from schema.ts rather than hardcoded, so the number stays true when a
plugin line is uncommented. Reports 21 against the current tree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -590,6 +590,11 @@ fi
|
|||||||
step "Schema"
|
step "Schema"
|
||||||
if ! skip; then
|
if ! skip; then
|
||||||
echo ""
|
echo ""
|
||||||
|
# Counted from the aggregator rather than hardcoded, so the number is the truth
|
||||||
|
# even when a plugin line is uncommented. It was written as ${SCHEMA_TABLES:-?}
|
||||||
|
# and never assigned, so the section said "? tables" — a placeholder that looked
|
||||||
|
# like the count could not be determined rather than like nobody had set it.
|
||||||
|
SCHEMA_TABLES="$(schema_table_count)"
|
||||||
info "Database schema"
|
info "Database schema"
|
||||||
echo " ${SCHEMA_TABLES:-?} tables, applied with 'bun db:push' — drizzle-kit"
|
echo " ${SCHEMA_TABLES:-?} tables, applied with 'bun db:push' — drizzle-kit"
|
||||||
echo " diffs the schema code against Postgres and alters it directly. There"
|
echo " diffs the schema code against Postgres and alters it directly. There"
|
||||||
|
|||||||
Reference in New Issue
Block a user