@prismshadow/penguin-library-project · library/project/src/ports.ts:34

ProjectDataMigrationLedger

interface

The record of the one-time migrations of a Project's files this server has run. A Project this build creates is recorded already migrated at its creation, so the startup migration never touches it. The server's binding wraps its ProjectDataMigrations ledger and keeps the migration's name on its side.

API

@Interface()
export abstract class ProjectDataMigrationLedger {
  abstract recordMigrated(projectId: string, at: string): void;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (1)

recordMigrated

recordMigrated(projectId: string, at: string): void

Records that the Project's data is already in the current shape, as of at.

@paramprojectIdstring
@paramatstring
@returnsvoid