-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompatibility.sql
64 lines (59 loc) · 1.57 KB
/
compatibility.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
-- 5.2+
select distinct p.url
--, swift_version, b.status
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and
(swift_version->>'major' = '5' and swift_version->>'minor' = '2'
or swift_version->>'major' = '5' and swift_version->>'minor' = '3'
or swift_version->>'major' = '5' and swift_version->>'minor' = '4'
)
and b.status = 'ok'
;
-- 5.4
select distinct p.url
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and swift_version->>'major' = '5' and swift_version->>'minor' = '4'
and b.status = 'ok'
;
-- 5.3
select distinct p.url
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and swift_version->>'major' = '5' and swift_version->>'minor' = '3'
and b.status = 'ok'
;
-- 5.2
select distinct p.url
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and swift_version->>'major' = '5' and swift_version->>'minor' = '2'
and b.status = 'ok'
;
-- 5.1
select distinct p.url
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and swift_version->>'major' = '5' and swift_version->>'minor' = '1'
and b.status = 'ok'
;
-- 5.0
select distinct p.url
from packages p
join versions v on v.package_id = p.id
join builds b on b.version_id = v.id
where v.latest is not null
and swift_version->>'major' = '5' and swift_version->>'minor' = '0'
and b.status = 'ok'
;