fix(migrations): convert duplicate email_events CREATE to ALTER TABLE#45
Merged
fix(migrations): convert duplicate email_events CREATE to ALTER TABLE#45
Conversation
The email_events table is already created by m20260320 (email tracking). Migration m20260328 was attempting to CREATE TABLE again with different columns. Changed to ALTER TABLE ADD COLUMN IF NOT EXISTS for the missing provider_message_id, recipient, and metadata columns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
m20260320(email tracking) andm20260328(SNS webhook support)m20260328fromCREATE TABLE IF NOT EXISTStoALTER TABLE ADD COLUMN IF NOT EXISTSfor the 3 missing columns (provider_message_id, recipient, metadata)temps-deploymentsand 3 intemps-analyticscaused by migration conflicts after merging PR feat(compose): add Docker Compose stack management #41Test plan
cargo test --lib -p temps-deployments— 304 passed, 0 failedcargo test --lib -p temps-analytics— 22 passed, 0 failedcargo check --lib— clean