Skip to content

Commit

Permalink
Merge pull request #192 from UN-OCHA/make-required
Browse files Browse the repository at this point in the history
Make some columns required
  • Loading branch information
Pl217 authored Nov 22, 2024
2 parents 61da672 + 4ac6d3e commit e205c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/db/models/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export default defineLegacyVersionedModel({
kind: 'branded-integer',
brand: ATTACHMENT_PROTOTYPE_ID,
},
planId: {
kind: 'branded-integer',
brand: PLAN_ID,
},
},
required: {
objectId: {
Expand All @@ -51,6 +47,10 @@ export default defineLegacyVersionedModel({
kind: 'checked',
type: ATTACHMENT_OBJECT_TYPE,
},
planId: {
kind: 'branded-integer',
brand: PLAN_ID,
},
type: {
kind: 'checked',
type: ATTACHMENT_TYPE,
Expand Down
2 changes: 0 additions & 2 deletions src/db/models/organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default defineIDModel({
},
required: {
name: { kind: 'checked', type: t.string },
},
accidentallyOptional: {
abbreviation: { kind: 'checked', type: t.string },
},
},
Expand Down

0 comments on commit e205c63

Please sign in to comment.