Skip to content

Migration/db iemr adolescent - #138

Open
SauravBizbRolly wants to merge 2 commits into
mainfrom
migration/db_iemr_adolescent
Open

Migration/db iemr adolescent#138
SauravBizbRolly wants to merge 2 commits into
mainfrom
migration/db_iemr_adolescent

Conversation

@SauravBizbRolly

@SauravBizbRolly SauravBizbRolly commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

📋 Description

JIRA ID: AMM-2382
Add new column in db iemr adolescent

✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

Summary by CodeRabbit

  • New Features
    • Added database support for recording whether an adolescent uses sanitary napkins.
    • New records default to “not used” when no value is provided.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6bf62066-10d6-4c53-9ac6-86bbf467e15a

📥 Commits

Reviewing files that changed from the base of the PR and between 8599136 and cc19100.

📒 Files selected for processing (1)
  • src/main/resources/db/migration/dbiemr/V91__add_column_adolescent.sql

📝 Walkthrough

Walkthrough

Adds an idempotent MySQL migration that conditionally creates is_sanitary_napkin_used on db_iemr.adolescent_health as a non-null TINYINT(1) column with a default value of 0.

Changes

Adolescent health schema update

Layer / File(s) Summary
Conditional column migration
src/main/resources/db/migration/dbiemr/V91__add_column_adolescent.sql
Checks INFORMATION_SCHEMA.COLUMNS, dynamically adds the missing column, and emits an existing-column message otherwise.

Estimated code review effort: 2 (Simple) | ~5–15 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the change, but it is too vague to clearly describe the new database migration or added column. Use a specific title like "Add is_sanitary_napkin_used to adolescent_health" so the main change is immediately clear.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

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