Skip to content

Commit

Permalink
🗃️ (backend): Update init migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-sized-emi authored and manuelhummler committed Dec 4, 2024
1 parent 9f136a4 commit 255a7f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import jakarta.ws.rs.DELETE;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.NotFoundException;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ create table member_verein (
create table Organization (
type smallint check (type between 0 and 0),
id bigint not null,
rootBommel_id bigint unique,
additionalLine varchar(255),
city varchar(255),
name varchar(255),
Expand Down Expand Up @@ -63,3 +64,8 @@ alter table if exists member_verein
add constraint FKkt8siyyn76gakg9jqqaj9qd1c
foreign key (member_id)
references Member;

alter table if exists Organization
add constraint FK89fpn5hdvenb13jjiauloqbya
foreign key (rootBommel_id)
references Bommel;

0 comments on commit 255a7f7

Please sign in to comment.