From e5fe966308c37cae6c9164a7c546b57454f7308e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 13 Aug 2026 03:06:04 +0000 Subject: [PATCH] count the schema tables instead of printing "?" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- scripts/setup/officer-setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/setup/officer-setup.sh b/scripts/setup/officer-setup.sh index 17ba54c1..7b63f30f 100755 --- a/scripts/setup/officer-setup.sh +++ b/scripts/setup/officer-setup.sh @@ -590,6 +590,11 @@ fi step "Schema" if ! skip; then 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" echo " ${SCHEMA_TABLES:-?} tables, applied with 'bun db:push' — drizzle-kit" echo " diffs the schema code against Postgres and alters it directly. There"