Skip to content

fix(#626): repair migration CLI quickstart - #670

Open
cofin wants to merge 1 commit into
mainfrom
fix/626-migration-cli-quickstart
Open

fix(#626): repair migration CLI quickstart#670
cofin wants to merge 1 commit into
mainfrom
fix/626-migration-cli-quickstart

Conversation

@cofin

@cofin cofin commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary

  • accept both module.attribute and module:attribute configuration references at the SQLSpec config resolver boundary
  • replace the broken migration workflow GIF with a complete, tested SQLite quickstart
  • document CLI, environment-variable, and pyproject.toml configuration discovery

Details

The generic import helper remains unchanged. The quickstart exports a SqliteConfig, uses version_table_name, and performs no import-time migration. Its copied database.py is exercised through the exact documented database:database_config reference and the show-config, init, create-migration, upgrade, and current-revision commands.

Closes #626.

@codecov-commenter

codecov-commenter commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.25%. Comparing base (a3a3012) to head (12b4a0d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #670   +/-   ##
=======================================
  Coverage   77.25%   77.25%           
=======================================
  Files         475      475           
  Lines       67901    67906    +5     
  Branches     9335     9336    +1     
=======================================
+ Hits        52458    52463    +5     
  Misses      12039    12039           
  Partials     3404     3404           
Flag Coverage Δ
integration 60.94% <85.71%> (+0.13%) ⬆️
py3.10 75.57% <100.00%> (-0.01%) ⬇️
py3.11 75.58% <100.00%> (+<0.01%) ⬆️
py3.12 75.59% <100.00%> (+<0.01%) ⬆️
py3.13 75.59% <100.00%> (+11.11%) ⬆️
py3.14 76.46% <100.00%> (+<0.01%) ⬆️
unit 64.78% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sqlspec/utils/config_tools.py 93.12% <100.00%> (+0.27%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cofin
cofin force-pushed the fix/626-migration-cli-quickstart branch from 5b364cb to 12b4a0d Compare August 1, 2026 22:28
@cofin
cofin marked this pull request as ready for review August 1, 2026 22:28
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.

Migration documentation very confusing

2 participants