Skip to content

Commit fc730a9

Browse files
committed
chore(labrinth/migrations): use proper val for HAVING clause
1 parent 859e0bf commit fc730a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/labrinth/migrations/20250523174544_project-versions-environments.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INSERT INTO version_fields (version_id, field_id, enum_value)
7272
JOIN loader_fields lf ON vf.field_id = lf.id
7373
WHERE lf.field IN ('server_only', 'singleplayer', 'client_and_server', 'client_only')
7474
GROUP BY vf.version_id
75-
HAVING COUNT(DISTINCT lf.field) = VAR_env_field_enum_id;
75+
HAVING COUNT(DISTINCT lf.field) = 4;
7676

7777
-- Clean up old fields from the project versions
7878
DELETE FROM version_fields

0 commit comments

Comments
 (0)