Skip to content

Comments

fix: correct schemas & migrations chapter#11

Merged
Taure merged 1 commit intomainfrom
fix/schemas-migrations-chapter
Feb 24, 2026
Merged

fix: correct schemas & migrations chapter#11
Taure merged 1 commit intomainfrom
fix/schemas-migrations-chapter

Conversation

@Taure
Copy link
Contributor

@Taure Taure commented Feb 24, 2026

Summary

  • Fix all three compile output blocks to match actual rebar3_kura format (kura: generated/kura: migration generated)
  • Fix schema diff description — it replays migration files to build DB state, doesn't connect to the database
  • Fix "Running migrations" section — blog_repo:start() only creates the pool, kura_migrator:migrate/1 runs migrations (references setup chapter)
  • Fix migration log format to match kura_migrator output
  • Add auto-timestamps note for inserted_at/updated_at fields
  • Add "Managing migrations" section covering rollback/1, rollback/2, status/1
  • Add {embed, ...} type to field types table

Test plan

  • mdbook build succeeds
  • All output examples cross-referenced against source (rebar3_kura_compile.erl, kura_migrator.erl, kura_repo_worker.erl)
  • Review rendered chapter for readability

🤖 Generated with Claude Code

…grations chapter

- Fix compile output to match actual rebar3_kura format (kura: generated/migration generated)
- Fix schema diff description: replays migration files, doesn't connect to database
- Fix migration runner: reference setup chapter's supervisor, not blog_repo:start()
- Fix migration log format to match kura_migrator output
- Add auto-timestamps note for inserted_at/updated_at fields
- Add migration management section (rollback, status)
- Add {embed, ...} type to field types table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Taure Taure merged commit 55b41f9 into main Feb 24, 2026
1 check 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