mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
dont use deprecated syntax when setting unique index
This commit is contained in:
parent
6230abe9c7
commit
4cd80cea71
1 changed files with 2 additions and 3 deletions
|
|
@ -31,8 +31,7 @@ export const assetCondition = pgTable(
|
|||
sourceSystem: text("source_system"),
|
||||
comments: text("comments"),
|
||||
},
|
||||
(t) => ({
|
||||
uniq: uniqueIndex("asset_condition_uprn_element_aspect_instance")
|
||||
(t) => [uniqueIndex("asset_condition_uprn_element_aspect_instance")
|
||||
.on(t.uprn, t.element, t.aspectType, t.elementInstance),
|
||||
})
|
||||
]
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue