Skip to content

Commit

Permalink
Merge pull request #175 from theopensystemslab/oz/social-rent-adjustm…
Browse files Browse the repository at this point in the history
…ents-table

feat: rename `social_rent_adjustments` table and make fields required
  • Loading branch information
zz-hh-aa authored Dec 13, 2024
2 parents bc6938e + bb1878d commit 102c859
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "soc_rent_adjustments" RENAME TO "social_rent_adjustments";
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "social_rent_adjustments" RENAME CONSTRAINT "soc_rent_adjustments_pkey" TO "social_rent_adjustments_pkey";
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "social_rent_adjustments" ALTER COLUMN "year" SET NOT NULL,
ALTER COLUMN "inflation" SET NOT NULL,
ALTER COLUMN "additional" SET NOT NULL,
ALTER COLUMN "total" SET NOT NULL;
10 changes: 5 additions & 5 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ model Rent {
}

model SocialRentAdjustments {
year String? @db.VarChar(10)
inflation Float?
additional Float?
total Float?
year String @db.VarChar(10)
inflation Float
additional Float
total Float
id Int @id @default(autoincrement())
@@map("soc_rent_adjustments")
@@map("social_rent_adjustments")
}

model SocialRentEarnings {
Expand Down

0 comments on commit 102c859

Please sign in to comment.