DB scripts and migrations

This commit is contained in:
2024-12-09 19:54:00 +02:00
parent 7a36614232
commit 6cf507bdc9
5 changed files with 66 additions and 54 deletions

5
db/url_port_stats.sql Normal file
View 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;