DB scripts and migrations
This commit is contained in:
5
db/url_port_stats.sql
Normal file
5
db/url_port_stats.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
SELECT
|
||||
COUNT(*) AS "All",
|
||||
COUNT(CASE WHEN URL ~ '://[^:]+:[0-9]+' THEN 1 END) AS "With port",
|
||||
COUNT(CASE WHEN URL !~ '://[^:]+:[0-9]+' THEN 1 END) AS "Without port"
|
||||
FROM snapshots;
|
||||
Reference in New Issue
Block a user