This website works better with JavaScript.
Home
Explore
Help
Sign In
davidhui
/
TSMS-backend
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1
Wiki
Activity
Browse Source
Update team lead constraints
tags/Baseline_30082024_BACKEND_UAT
Wayne
1 year ago
parent
954b346fb3
commit
cad30db3b0
2 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/main/resources/db/changelog/changes/20240429_01_wayne/01_team_lead_constraints.sql
+5
-0
src/main/resources/db/changelog/changes/20240429_01_wayne/02_mock_team_lead.sql
+ 5
- 0
src/main/resources/db/changelog/changes/20240429_01_wayne/01_team_lead_constraints.sql
View File
@@ -0,0 +1,5 @@
-- liquibase formatted sql
-- changeset wayne:team_lead_constraints
ALTER TABLE team ADD CONSTRAINT uc_team_teamlead UNIQUE (teamLead);
ALTER TABLE team ADD CONSTRAINT FK_TEAM_ON_TEAMLEAD FOREIGN KEY (teamLead) REFERENCES staff (id);
+ 5
- 0
src/main/resources/db/changelog/changes/20240429_01_wayne/02_mock_team_lead.sql
View File
@@ -0,0 +1,5 @@
-- liquibase formatted sql
-- changeset wayne:mock_team_lead
UPDATE team SET teamLead = 1 WHERE id = 1;
UPDATE team SET teamLead = 2 WHERE id = 2;
Write
Preview
Loading…
Cancel
Save