Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aircraft): improve aircraft data #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c558ebb
alphabetizing ATR42/72
chris-pryazhentsev Sep 13, 2024
37df7a7
alphabetized Airbus, added missing airbus models
chris-pryazhentsev Sep 13, 2024
9928ad8
re-classifying AN-225 as a Jumbo aircraft
chris-pryazhentsev Sep 13, 2024
61adfb1
add missing ATR models
chris-pryazhentsev Sep 13, 2024
5157653
sorting Antonov aircraft
chris-pryazhentsev Sep 13, 2024
90d3379
messed up A sorting, moved agusta
chris-pryazhentsev Sep 13, 2024
fdd3526
moving ayres and avro, added Avro RJ70 and Avro RJ85
chris-pryazhentsev Sep 13, 2024
6f76da0
moving ayres and avro, added Avro RJ70 and Avro RJ85
chris-pryazhentsev Sep 13, 2024
7986535
sorting BAE146, updating names with the type designation
chris-pryazhentsev Sep 13, 2024
f428f25
messed up sorting
chris-pryazhentsev Sep 13, 2024
5a8a3e5
sorted Boeing Aircraft and added missing models
chris-pryazhentsev Sep 13, 2024
cdf82d3
removing RJX since this type is not in the ICAO list of aircraft
chris-pryazhentsev Sep 13, 2024
617cbcd
removing duplicate antonovs
chris-pryazhentsev Sep 13, 2024
09e16e5
moving Beechcraft
chris-pryazhentsev Sep 13, 2024
3990f95
sorting CRJ's, adding CRJ-100/200/550/700/1000
chris-pryazhentsev Sep 13, 2024
228e820
adding A300-600
chris-pryazhentsev Sep 13, 2024
5bd58ac
fix: replace invalid ICAO E175 with E75S and E75L
johanohly Oct 6, 2024
8fb6339
fix: remove duplicate entries
johanohly Oct 6, 2024
a5248b3
Merge branch 'main' into pryazhentsev/aircraft-data-cleanup
johanohly Oct 6, 2024
df2e939
fix: migrate "invalid" ICAO aircraft type codes to valid equivalents
johanohly Oct 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions prisma/migrations/20241006184406_icao_aircraft_codes/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
UPDATE flight
SET aircraft = CASE aircraft
WHEN 'A330' THEN 'A333'
WHEN 'EMB1' THEN 'E120'
WHEN 'EMB4' THEN 'E145'
WHEN 'EMB7' THEN 'E170'
WHEN 'A350' THEN 'A359'
WHEN 'A380' THEN 'A388'
WHEN 'B737' THEN 'B738'
WHEN 'B747' THEN 'B744'
WHEN 'B767' THEN 'B763'
WHEN 'B777' THEN 'B772'
WHEN 'B787' THEN 'B789'
WHEN 'AN124' THEN 'A124'
WHEN 'AN225' THEN 'A225'
ELSE aircraft
END
WHERE aircraft IN
('A330', 'EMB1', 'EMB4', 'EMB7', 'A350', 'A380', 'B737', 'B747', 'B767', 'B777', 'B787', 'AN124', 'AN225');
Loading