13 lines
668 B
SQL
13 lines
668 B
SQL
-- Required Items scraped from each mod's Steam Workshop page (the "Required
|
|
-- Items" section). Steam's anonymous GetPublishedFileDetails endpoint does
|
|
-- not include children for individual mods, so we scrape the public HTML.
|
|
--
|
|
-- Use cases:
|
|
-- 1. Auto-resolving missing-dep warnings: when a cached mod_id Y is
|
|
-- missing dep X, we look at Y's source wsid's required_wsids and
|
|
-- auto-queue any uncached wsids — the next sort resolves X.
|
|
-- 2. Surfacing "↗ add <wsid>" actions for unresolved deps so the user
|
|
-- can pull them with one click.
|
|
ALTER TABLE workshop_meta
|
|
ADD COLUMN IF NOT EXISTS required_wsids TEXT[] NOT NULL DEFAULT '{}';
|