mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
* fix: skins backend bugs + apply flow * fix: caching structure * feat: collapse already duplicated skins + fix moj api spam * fix: doc * fix: flatten migrations * feat: remove default cape/cape override concept * fix: fmt + lint * feat: remove SelectCapeModal for inline cape list * feat: qa * feat: virtualisation of skins sections + fix texture/model cache * fix: lint * fix: virt bugs + renderer fixes * fix: qa bugs * fix: doc * fix: re-add click impulse anim from prototypes + re-add interact anim length cap * fix: regressions * devex: split up SkinPreviewrenderer * fix: lint * fix: introduce dynamic mode in virtual-scroll.ts * feat: qa * fix: nametag bug + remove minecon skin pack suffix * feat: pain (literally) * feat: user agent on moj reqs * feat: impl per account flush queue for operations * fix: breadcrumb * chore: i18n pass * fix: lint + prep + check * fix: misalignments
14 lines
482 B
SQL
14 lines
482 B
SQL
DROP TABLE IF EXISTS default_minecraft_capes;
|
|
|
|
-- Keep only one saved skin per Minecraft account and texture.
|
|
-- variant and cape_id are settings on that saved skin, not part of the skin identity.
|
|
DELETE FROM custom_minecraft_skins
|
|
WHERE rowid NOT IN (
|
|
SELECT MAX(rowid)
|
|
FROM custom_minecraft_skins
|
|
GROUP BY minecraft_user_uuid, texture_key
|
|
);
|
|
|
|
CREATE UNIQUE INDEX custom_minecraft_skins_one_per_texture
|
|
ON custom_minecraft_skins (minecraft_user_uuid, texture_key);
|