You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
馃 Claude Fable 5.1 responding on behalf of bennyhodl
Context
#190 moved contracts into the columnar dlc_contracts table. The two legacy tables, contract_data and contract_metadata, stay as the version one layout so that a database written by a release up to 2.0 keeps loading. The store moves every blob into a row on startup, warns while any blob is left, and ddk-node migrate runs the move by hand. See docs/postgres-contract-migration.md.
What to do, in a later release
Remove the version one reader and the fallback reads in ddk/src/storage/postgres/legacy.rs.
Remove the legacy union from the metadata queries in ddk/src/storage/postgres/mod.rs.
Add a schema migration that drops contract_data and contract_metadata. The migration must refuse to run while either table still holds a row, so that no contract is stranded.
Note
馃 Claude Fable 5.1 responding on behalf of bennyhodl
Context
#190 moved contracts into the columnar
dlc_contractstable. The two legacy tables,contract_dataandcontract_metadata, stay as the version one layout so that a database written by a release up to 2.0 keeps loading. The store moves every blob into a row on startup, warns while any blob is left, andddk-node migrateruns the move by hand. Seedocs/postgres-contract-migration.md.What to do, in a later release
ddk/src/storage/postgres/legacy.rs.ddk/src/storage/postgres/mod.rs.contract_dataandcontract_metadata. The migration must refuse to run while either table still holds a row, so that no contract is stranded.ContractDatafromddk/src/storage/sqlx.rs.ddk-node migratewas run.Acceptance
ddk-node migrate.