Skip to content

Create tables via kura migrations on boot; drop schema sql#32

Merged
Taure merged 2 commits into
mainfrom
feat/kura-native-migrations
Jun 24, 2026
Merged

Create tables via kura migrations on boot; drop schema sql#32
Taure merged 2 commits into
mainfrom
feat/kura-native-migrations

Conversation

@Taure

@Taure Taure commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Makes chatli fully kura-native.

Changes

  • kura_migrator:migrate(chatli_repo) in chatli_app:start creates tables on boot; commit the generated migration.
  • Remove schema sql (sql/10_ldf.sql, sql/20_chatli.sql).
  • Remove misplaced li/ldf_message schemas (those tables belong to ldf).
  • sql/seed.sql (data-only, idempotent) holds the sample users, applied after boot; docker-compose serves an empty chatli DB. .dockerignore excludes _build.

Verification

Empty DB -> boot -> 7 tables created via migration; seed applied; all 12 CT tests pass. fmt/xref/lint clean.

⚠️ Coupled with the ldf + demo PRs. Merge together.

Taure added 2 commits June 24, 2026 11:07
- run kura_migrator:migrate/1 in chatli_app:start so chatli creates its
  own tables on boot; commit the generated migration
- remove schema sql (sql/10_ldf.sql, sql/20_chatli.sql); the demo no
  longer needs them
- remove misplaced li/ldf_message schemas (those tables belong to ldf)
- docker-compose provides an empty chatli DB; sql/seed.sql holds the
  sample users, applied after boot (data-only, ON CONFLICT DO NOTHING)

CT suite (all 12) passes against a migrated + seeded DB.
Prevents local _build (OTP-specific plugin beams) from being copied into
the Docker build and failing the release with beam load errors.
@Taure
Taure merged commit 9597504 into main Jun 24, 2026
2 checks passed
@Taure
Taure deleted the feat/kura-native-migrations branch June 24, 2026 13:47
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