-
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.
- Loading branch information
Showing
11 changed files
with
76 additions
and
135 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
26 changes: 0 additions & 26 deletions
26
src/main/java/pl/edu/pk/siwz/backend/controllers/ConnectionController/ConnectionDto.java
This file was deleted.
Oops, something went wrong.
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
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
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
1 change: 0 additions & 1 deletion
1
src/main/java/pl/edu/pk/siwz/backend/service/ConnectionService.java
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
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
27 changes: 27 additions & 0 deletions
27
src/main/resources/db/migration/V2__init_Connection_Flight_table.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,27 @@ | ||
drop table if exists connections cascade; | ||
drop table if exists flights cascade; | ||
|
||
|
||
create table connections( | ||
id bigint auto_increment primary key auto_increment, | ||
src_airport_id bigint not null, | ||
dst_airport_id bigint not null, | ||
departure_date varchar(50) not null, | ||
arrival_date varchar(50) not null, | ||
|
||
foreign key (src_airport_id) references airports(id), | ||
foreign key (src_airport_id) references airports(id) | ||
); | ||
|
||
create table flights( | ||
id bigint auto_increment primary key auto_increment, | ||
connection_id bigint not null, | ||
airline_id bigint not null, | ||
number_seats int not null, | ||
price double not null, | ||
|
||
foreign key (connection_id) references connections(id), | ||
foreign key (airline_id) references airlines(id) | ||
); | ||
|
||
|
38 changes: 0 additions & 38 deletions
38
src/main/resources/db/migration/V2__init_Connection_Route_and_ConnectionRoute_table.sql
This file was deleted.
Oops, something went wrong.