Skip to content

feat(flobyte): rekey_to_platform migration task - #14

Merged
rrader26 merged 1 commit into
mainfrom
feat/flobyte-rekey-task
Jun 17, 2026
Merged

feat(flobyte): rekey_to_platform migration task#14
rrader26 merged 1 commit into
mainfrom
feat/flobyte-rekey-task

Conversation

@rrader26

Copy link
Copy Markdown

Dry-run-capable email->platformId re-key for Lago customers + subscriptions. Inert until run with apply. Prereq: bridge reads platformId in prod first. 🤖 Generated with Claude Code

Adds flobyte:rekey_to_platform[org,map.json,apply?] which renames customer
external_id email->platformId and each subscription's external_id prefix. Dry-run
by default; skips (with a warning) when a customer already exists under the target
platformId so white-label customers aren't auto-merged. Reads the email->platformId
map from a JSON file at runtime so prod data stays out of the repo.

PREREQUISITE: the app bridge must read by platformId (with email fallback) in prod
before this is run with apply.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 2a67776 into main Jun 17, 2026
1 of 12 checks 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.

2 participants