Merge pull request #267 from Hestia-Homes/feature/magicplan-tables
Some checks are pending
Test Suite / unit-tests (push) Waiting to run

Make magicplan uid column unique
This commit is contained in:
Jun-te Kim 2026-05-12 16:51:17 +01:00 committed by GitHub
commit 4460795fca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9406 additions and 1 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "magic_plan_plan" ADD CONSTRAINT "magic_plan_plan_magic_plan_uid_unique" UNIQUE("magic_plan_uid");

File diff suppressed because it is too large Load diff

View file

@ -1401,6 +1401,13 @@
"when": 1778249728162,
"tag": "0199_rich_mandroid",
"breakpoints": true
},
{
"idx": 200,
"version": "7",
"when": 1778600522440,
"tag": "0200_new_beast",
"breakpoints": true
}
]
}

View file

@ -7,6 +7,6 @@ export const magicPlanPlan = pgTable(
name: text("name"),
address: text("address"),
postcode: text("postcode"),
magicPlanUid: text("magic_plan_uid"),
magicPlanUid: text("magic_plan_uid").unique(),
},
);