Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable exporting table schema to code repository #2876

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Conversation

shobhitagarwal1612
Copy link
Member

Allow exporting table schema to code repository.

This will enable compile time failures if room cannot auto-migrate schema and a manual migration is missing.

https://developer.android.com/training/data-storage/room/migrating-db-versions

Needed for #2871

@gino-m PTAL?

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.19%. Comparing base (dccdd41) to head (2e8870e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2876   +/-   ##
=========================================
  Coverage     61.19%   61.19%           
  Complexity     1183     1183           
=========================================
  Files           266      266           
  Lines          6345     6345           
  Branches        903      903           
=========================================
  Hits           3883     3883           
  Misses         1933     1933           
  Partials        529      529           
Files with missing lines Coverage Δ
...oid/ground/persistence/local/room/LocalDatabase.kt 100.00% <ø> (ø)

Copy link
Collaborator

@gino-m gino-m left a comment

Choose a reason for hiding this comment

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

👍 🚢

@gino-m gino-m merged commit e2c7033 into master Nov 27, 2024
4 checks passed
@gino-m gino-m deleted the export-schema branch November 27, 2024 15:28
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.

3 participants