mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
IUgcLookup::ListUgc pages either kind with the UGC search's matching, a state and a sort, and counts the matches (MySQL and SQLite share the SQL). The UGC server records each model's bricks and triangles (new ugc columns) so models can be sorted by size. Cars and rockets are listed as assemblies, one per combination of modules, with their build type, module names and how many builds use them; filters for type, state, module and owner. Each assembly's builds (with where they are) are paged, and a build's assembly can be looked up for links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 lines
238 B
SQL
4 lines
238 B
SQL
/* UGC server: the bricks and triangles it counted when it made a model. See the MySQL migration. */
|
|
ALTER TABLE ugc ADD COLUMN brick_count INTEGER NOT NULL DEFAULT 0;
|
|
ALTER TABLE ugc ADD COLUMN triangle_count INTEGER NOT NULL DEFAULT 0;
|