Skip to content

fix: add schema-preserving table rebuilds - #89

Merged
gsmlg merged 1 commit into
mainfrom
fix/issue-82
Aug 27, 2026
Merged

fix: add schema-preserving table rebuilds#89
gsmlg merged 1 commit into
mainfrom
fix/issue-82

Conversation

@gsmlg

@gsmlg gsmlg commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Ecto.Adapters.Turso.Migration.rebuild_table!/3 with explicit target schema and identifier-only copy mappings
  • pin rebuilds to one idle connection with transactional create/copy/drop/rename, FK state restoration, object recreation, sequence preservation, and mandatory integrity checks
  • reject unsafe transaction, qualified-name, hidden-column, PK-mapping, and AUTOINCREMENT changes before destructive steps
  • document reversible Ecto up/0 and down/0 usage and point unsupported modify/3 calls to the helper

Validation

  • mix do --app ex_turso cmd mix test — 49 tests, 0 failures
  • mix do --app ex_turso cmd mix compile --warnings-as-errors
  • mix format --check-formatted
  • mix credo --strict
  • mix hex.build package-content verification

Fixes #82

@gsmlg
gsmlg merged commit 9f4b3a2 into main Aug 27, 2026
14 checks passed
@gsmlg
gsmlg deleted the fix/issue-82 branch August 27, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[internal] Add schema-preserving rebuild helper for unsupported Turso column changes

2 participants