Skip to content

feat(migrations): add event_ledger keyspace Cassandra migration - #207

Merged
shelleyshen-0 merged 1 commit into
mainfrom
feat/migrations/add-event-ledger-keyspace
Jul 16, 2026
Merged

feat(migrations): add event_ledger keyspace Cassandra migration#207
shelleyshen-0 merged 1 commit into
mainfrom
feat/migrations/add-event-ledger-keyspace

Conversation

@shelleyshen-0

@shelleyshen-0 shelleyshen-0 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Why

The event_ledger keyspace migration files were missing from the repository. This adds the Cassandra DDL needed to provision the keyspace on fresh installations.

The failed_cloudevents and retry_leader tables are intentionally excluded as they are not required.

What changed

Added migrations/cassandra/keyspaces/event_ledger/ with three migration files:

  • 01_init_keyspace.up.sql: creates the keyspace with NetworkTopologyStrategy replication
  • 02_init_roles.up.sql: creates the application role and grants
  • 03_init_tables.up.sql: creates the events_v3 and stats_v3 tables

Customer Release Notes

Not customer visible.

Plan Summary

Not applicable.

Usage

Not applicable.

Testing

Migration files follow the same clean-slate conventions as other keyspaces in this directory.

Notes

None.

References

Closes #169

Related Merge Requests/Pull Requests

None.

Dependencies

None.

Github commit:
feat(migrations): add event_ledger keyspace Cassandra migration

Adds Cassandra DDL migration files for the event_ledger keyspace, including keyspace creation, role grants, and the events_v3 and stats_v3 tables.

Adds the Cassandra DDL migration files for the event_ledger keyspace:
- 01_init_keyspace.up.sql: keyspace creation with NetworkTopologyStrategy
- 02_init_roles.up.sql: application role and grants
- 03_init_tables.up.sql: events_v3 and stats_v3 tables

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@shelleyshen-0
shelleyshen-0 requested a review from a team as a code owner July 16, 2026 19:51

@balajinvda balajinvda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the error and merge.

@shelleyshen-0
shelleyshen-0 added this pull request to the merge queue Jul 16, 2026
Merged via the queue into main with commit 23b15d7 Jul 16, 2026
11 of 12 checks passed
@balajinvda

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version nvcf-cassandra-migrations-v0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@shelleyshen-0
shelleyshen-0 deleted the feat/migrations/add-event-ledger-keyspace branch August 10, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Cassandra migrations for Event Ledger

2 participants