Files
Nexus.Reader/src/.documentation/cache/summaries/NexusReader.Data__Migrations__20260510161155_AddEbookProgressAndChapter.cs.json
T
2026-05-25 14:02:56 +02:00

1 line
2.5 KiB
JSON

{"path":"NexusReader.Data/Migrations/20260510161155_AddEbookProgressAndChapter.cs","purpose":"EF Core migration that adds two columns (LastChapter, Progress) to the Ebooks table and provides a Down method to remove them.","classification":{"role":"database-config","layer":"data","confidence":0.9,"evidence":["Namespace NexusReader.Data.Migrations","Class inherits Microsoft.EntityFrameworkCore.Migrations.Migration","Methods Up and Down perform schema changes (AddColumn / DropColumn) on table 'Ebooks'"]},"className":"AddEbookProgressAndChapter","methods":[{"name":"Up","line":11,"endLine":26,"signature":"(migrationBuilder: MigrationBuilder) -> void","purpose":"Applies schema changes: adds LastChapter (string) and Progress (double) columns to the Ebooks table.","calls":[],"actions":[{"id":"add-column_13","kind":"mapping","label":"Add LastChapter column","line":13,"detail":"Adds column 'LastChapter' to table 'Ebooks' with SQL type 'character varying(255)', maxLength 255, nullable true.","visibility":"detail-only","confidence":0.7},{"id":"add-column_20","kind":"mapping","label":"Add Progress column","line":20,"detail":"Adds column 'Progress' to table 'Ebooks' with SQL type 'double precision', non-nullable, defaultValue 0.0.","visibility":"detail-only","confidence":0.7}]},{"name":"Down","line":29,"endLine":38,"signature":"(migrationBuilder: MigrationBuilder) -> void","purpose":"Reverts schema changes applied in Up by dropping LastChapter and Progress columns from the Ebooks table.","calls":[],"actions":[{"id":"drop-column_31","kind":"mapping","label":"Drop LastChapter column","line":31,"detail":"Drops column 'LastChapter' from table 'Ebooks'.","visibility":"detail-only","confidence":0.7},{"id":"drop-column_35","kind":"mapping","label":"Drop Progress column","line":35,"detail":"Drops column 'Progress' from table 'Ebooks'.","visibility":"detail-only","confidence":0.7}]}],"types":[],"serviceRegistrations":[],"startupActions":[],"dependencies":[],"patterns":["EF Core Migration"],"domainConcepts":["Ebook","Progress","Chapter"],"keyDetails":"Adds a nullable string LastChapter (max 255) and a non-nullable double Progress with default 0.0 to the Ebooks table; Down removes both columns.","orchestrationMethods":[],"typedContracts":[],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[],"cacheMetadata":{"schemaVersion":2,"analysisVersion":"2026-05-23.cache-v1","contentChecksum":"87e3c968598efd778006a95e79fe5852d23be4b2a0bae4469604d5dc050349b9","sourceByteSize":1169,"analyzedAt":"2026-05-23T16:24:38.215Z","technology":"dotnet"}}