Skip to content

fix(cli,template): drop the unimplemented --db sqlserver option#1265

Merged
iammukeshm merged 2 commits into
mainfrom
fix/remove-unimplemented-sqlserver-option
May 27, 2026
Merged

fix(cli,template): drop the unimplemented --db sqlserver option#1265
iammukeshm merged 2 commits into
mainfrom
fix/remove-unimplemented-sqlserver-option

Conversation

@iammukeshm
Copy link
Copy Markdown
Member

Found during the pre-release smoke test.

--db sqlserver (CLI option + template db choice) advertised SQL Server but did nothing — the generated project was always PostgreSQL (provider POSTGRESQL, Postgres connection string, only a *.Migrations.PostgreSQL project). The db symbol had no conditional wiring at all.

Rather than ship a misleading option in the grand release, this removes it so the scaffold only offers what works:

  • CLI: dropped the --db option, the interactive DB prompt, and the --db sqlserver example.
  • Template: removed the db choice symbol.

The backend's latent provider abstraction (DbProviders, OptionsBuilderExtensions) is left intact, so proper SQL Server support can be added later without re-plumbing.

Verified: CLI builds, fsh new --help no longer lists --db, and a fresh pack→install→scaffold→build (no --db) produces a clean PostgreSQL app (build 0/0).

🤖 Generated with Claude Code

iammukeshm and others added 2 commits May 28, 2026 02:20
The CLI `--db` option and the template's `db` choice symbol advertised SQL
Server, but selecting it had NO effect -- the generated app was always
PostgreSQL (provider, connection string, and the sole `*.Migrations.PostgreSQL`
project). Shipping a no-op option in the grand release would mislead users, so
drop it; the scaffold now offers only what actually works (PostgreSQL).

Removed: the `--db` CLI option + its interactive prompt (ResolveDatabaseAsync),
the `db` template symbol, and the `--db sqlserver` example. The backend's latent
multi-provider abstraction (DbProviders / OptionsBuilderExtensions) is left
untouched, so real SQL Server support can be added later without re-plumbing.

Found while smoke-testing the distribution for release.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The smoke test scaffolded with `dotnet new fsh ... --db postgresql`, which now
fails ("unknown option --db") because this PR removed the db template symbol.
Drop the flag from both the full and minimal scaffold steps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@iammukeshm iammukeshm merged commit d77fd7b into main May 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant