-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rename
HPI
table columns, add not null constraints (#164)
* feat: HPI table * fix: Drop redundant warnings in migrations
- Loading branch information
1 parent
0781f7c
commit ec731dc
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
prisma/migrations/20241206165018_update_hpi_table/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- AlterTable | ||
ALTER TABLE "hpi" | ||
RENAME COLUMN "ladcode" TO "lad_code"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "hpi" | ||
ALTER COLUMN "region" SET NOT NULL, | ||
ALTER COLUMN "itl3" SET NOT NULL, | ||
ALTER COLUMN "hpi_2000" SET NOT NULL; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20241206165140_lad_code_not_null/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "hpi" ALTER COLUMN "lad_code" SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters