Skip to content

Add database migration#315

Merged
quake merged 19 commits intonervosnetwork:mainfrom
chenyukang:yukang-migration
Nov 27, 2024
Merged

Add database migration#315
quake merged 19 commits intonervosnetwork:mainfrom
chenyukang:yukang-migration

Conversation

@chenyukang
Copy link
Collaborator

@chenyukang chenyukang commented Nov 16, 2024

  • Add db migration for change schemas
  • Some code refactor on store

Closes #117

@chenyukang chenyukang marked this pull request as draft November 16, 2024 05:56
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 64.58333% with 68 lines in your changes missing coverage. Please review.

Project coverage is 44.76%. Comparing base (27d6b47) to head (18bd9a8).

Files with missing lines Patch % Lines
src/store.rs 43.24% 42 Missing ⚠️
src/migration/migration.rs 73.86% 23 Missing ⚠️
src/migration/db_migrate.rs 86.66% 2 Missing ⚠️
src/fiber/serde_utils.rs 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
+ Coverage   44.65%   44.76%   +0.10%     
==========================================
  Files          44       46       +2     
  Lines       28075    28233     +158     
==========================================
+ Hits        12538    12638     +100     
- Misses      15537    15595      +58     
Flag Coverage Δ
unittests 44.76% <64.58%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chenyukang chenyukang marked this pull request as ready for review November 20, 2024 04:08
@quake quake merged commit 279f395 into nervosnetwork:main Nov 27, 2024
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.

Gracefully migrate persisted data

3 participants