Skip to content

Commit

Permalink
HPC-9772: Add focusLocationId to planVersion model
Browse files Browse the repository at this point in the history
  • Loading branch information
enxtur committed Oct 29, 2024
1 parent 37a54f9 commit 22fc663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/models/planVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { brandedType } from '../../util/io-ts';
import type { Brand } from '../../util/types';
import { DATE } from '../util/datatypes';
import { defineLegacyVersionedModel } from '../util/legacy-versioned-model';
import { LOCATION_ID } from './location';
import { PLAN_ID } from './plan';
import { PLAN_REPORTING_PERIOD_ID } from './planReportingPeriod';

Expand Down Expand Up @@ -59,6 +60,7 @@ export default defineLegacyVersionedModel({
type: PLAN_VERSION_CLUSTER_SELECTION_TYPE,
},
pdfPublishDate: { kind: 'checked', type: DATE },
focusLocationId: { kind: 'branded-integer', brand: LOCATION_ID },
},
accidentallyOptional: {
shortName: { kind: 'checked', type: t.string },
Expand Down

0 comments on commit 22fc663

Please sign in to comment.