-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated from public transport to nearby locations
- Loading branch information
1 parent
10325a0
commit 80d8517
Showing
15 changed files
with
358 additions
and
93 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
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
58 changes: 58 additions & 0 deletions
58
server/.sqlx/query-115b3b32c7a407ed1eaad8db95c060a041abb19b46746df93ef09ad7d15452e9.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
server/.sqlx/query-32f42f986c87874e8fb7f89e1a1f2a438bdcc05a787b89fb1b613f3909048ebd.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
server/.sqlx/query-442cfa22e4c73c899a4dd75572b16b77ec19709218c187f895b42871e59f89ce.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add down migration script here | ||
DROP table transportation_stations; |
15 changes: 15 additions & 0 deletions
15
server/main-api/migrations/20240727225546_transport.up.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,15 @@ | ||
-- Add up migration script here | ||
CREATE TABLE transportation_stations | ||
( | ||
parent TEXT NULL, | ||
id TEXT UNIQUE PRIMARY KEY NOT NULL, | ||
name TEXT NOT NULL, | ||
coordinate Point NOT NULL | ||
); | ||
alter table transportation_stations | ||
add constraint transportation_stations_transportation_stations_station_id_fk | ||
foreign key (parent) references transportation_stations | ||
on update cascade on delete set null; | ||
CREATE INDEX transportation_stations_loc_idx | ||
ON transportation_stations | ||
USING GIST (coordinate); |
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
Oops, something went wrong.