Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CM6311-Group-6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Tobiah Nott
CM6311-Group-6
Merge requests
!15
For db migration
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
For db migration
main
into
chris/uploadcsv
Overview
0
Commits
2
Pipelines
1
Changes
4
Merged
For db migration
Christopher Dixon
requested to merge
main
into
chris/uploadcsv
Dec 2, 2023
Overview
0
Commits
2
Pipelines
1
Changes
4
0
0
Merge request reports
Compare
chris/uploadcsv
chris/uploadcsv (base)
and
latest version
latest version
948e054c
2 commits,
Dec 2, 2023
4 files
+
101
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
prisma/migrations/20231107141232_added_table_for_heating_type/migration.sql
0 → 100644
+
18
−
0
View file @ 948e054c
Edit in single-file editor
Open in Web IDE
-- CreateEnum
CREATE
TYPE
"Dwelling"
AS
ENUM
(
'SEMI'
,
'DETACHED'
,
'FLAT'
,
'TERRACED'
);
-- CreateEnum
CREATE
TYPE
"Heating_Type"
AS
ENUM
(
'RESISTANCE'
,
'GAS_BOILER'
,
'OIL_BOILER'
,
'BIOMASS_BOILER'
);
-- CreateTable
CREATE
TABLE
"HeatingType"
(
"lsoa11cd"
TEXT
NOT
NULL
,
"heatingType"
"Heating_Type"
,
"dwelling"
"Dwelling"
,
"value"
DECIMAL
,
CONSTRAINT
"HeatingType_pkey"
PRIMARY
KEY
(
"lsoa11cd"
)
);
-- AddForeignKey
ALTER
TABLE
"HeatingType"
ADD
CONSTRAINT
"lsoa11cd___fk"
FOREIGN
KEY
(
"lsoa11cd"
)
REFERENCES
"lsoa"
(
"lsoa11cd"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
Loading