Skip to content

Add v_assetbundle_loaded_assets view; describe what a DB upgrade applied#8

Merged
UnityZappy merged 1 commit into
mainfrom
features/assetbundle-loaded-assets-view-table
Jun 10, 2026
Merged

Add v_assetbundle_loaded_assets view; describe what a DB upgrade applied#8
UnityZappy merged 1 commit into
mainfrom
features/assetbundle-loaded-assets-view-table

Conversation

@UnityZappy

Copy link
Copy Markdown
Collaborator

New analysis view v_assetbundle_loaded_assets: one row per (AssetBundle, loaded native object) it references — the exploded, per-asset companion to v_assetbundle_utilization. It reuses the same edge filter (native->native native_connection edges with to_index <> from_index), so the bundle's own native self-reference and its managed wrapper(s) are excluded. Mirrored in both the DuckDB and SQLite writers.

Bump schema minor 2 -> 3 (view-only, upgradeable in place) and document the view, its columns, and the version row in docs/database-schema.md.

The upgrade command now lists which schema versions were applied, via a new DatabaseSchemaInfo.Changelog / ChangesSince() that mirrors the doc version table. Wired into both the explicit upgrade command and the interactive SchemaGate prompt. Adds tests for ChangesSince plus a guard that the changelog always covers the current version.

New analysis view v_assetbundle_loaded_assets: one row per (AssetBundle,
loaded native object) it references — the exploded, per-asset companion to
v_assetbundle_utilization. It reuses the same edge filter (native->native
native_connection edges with to_index <> from_index), so the bundle's own
native self-reference and its managed wrapper(s) are excluded. Mirrored in
both the DuckDB and SQLite writers.

Bump schema minor 2 -> 3 (view-only, upgradeable in place) and document the
view, its columns, and the version row in docs/database-schema.md.

The `upgrade` command now lists which schema versions were applied, via a new
DatabaseSchemaInfo.Changelog / ChangesSince() that mirrors the doc version
table. Wired into both the explicit `upgrade` command and the interactive
SchemaGate prompt. Adds tests for ChangesSince plus a guard that the changelog
always covers the current version.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@UnityZappy UnityZappy requested a review from a team as a code owner June 10, 2026 13:59
@UnityZappy UnityZappy merged commit 86af1fe into main Jun 10, 2026
1 check passed
@UnityZappy UnityZappy deleted the features/assetbundle-loaded-assets-view-table branch June 10, 2026 14:00
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