• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightninglabs / taproot-assets / 13322124677
54%
main: 57%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-1913-46bebd3a34518c96f58957c2cb9c91e18cfdf1cf
DEFAULT BRANCH: main
Ran 14 Feb 2025 03:53AM UTC
Jobs 1
Files 214
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Feb 2025 03:48AM UTC coverage: 41.026%. First build
13322124677

Pull #1386

github

Roasbeef
tapdb: expand allowed proof types in universe-related tables

This commit introduces a migration that expands the allowed values for
the "proof_type" column in the universe-related tables by adding new
proof types: "burn" and "ignore".

Key changes include:
- Creation of a new table `proof_types` to store valid proof type
  values. Before this commit, we used a `CHECK` statement. With the way
  sqlite works, we can't _alter_ the `CHECK` statement, and just
  dropping the row would lose data.

  So instead, we add a new enum-like table instead. This can be updated
  in future migrations to add new proof types. We then do a migration to
  update all tables to use this instead.

- Updates to the `universe_roots`, `federation_global_sync_config`, and
  `federation_uni_sync_config` tables to accommodate the new proof
  types. This involves adding a new column `proof_type_ext` that
  references the `proof_types` table, copying existing data, and
  renaming columns to maintain the original structure.

- A new test case `TestMigration29` has been added to ensure the
  migration works as expected, verifying both the migration of existing
  data and the insertion of new rows with the new proof types.

- The `.gitignore` file has been updated to exclude files matching the
  pattern `.aider*`.

Additionally, a down migration script has been created to revert these
changes if necessary. This ensures that the database schema can be
rolled back to its previous state without data loss.
Pull Request #1386: tapdb: expand allowed proof types in universe-related tables

10 of 12 new or added lines in 5 files covered. (83.33%)

27330 of 66616 relevant lines covered (41.03%)

92251.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
71.58
0.0% tapdb/universe_stats.go
Jobs
ID Job ID Ran Files Coverage
1 unit - 13322124677.1 14 Feb 2025 03:53AM UTC 214
41.03
GitHub Action Run
Source Files on build 13322124677
  • Tree
  • List 214
  • Changed 93
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1386
  • PR Base - main (#13288775309)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc