Georges-Antoine Assi d95ca18d4a fix(backend): make roms_facets/collection migrations idempotent
MariaDB/MySQL auto-commit each DDL statement, so a failure partway
through 0100/0101/0103 committed the CREATE TABLE / ADD COLUMN but never
advanced alembic_version. Every reboot then re-ran the migration from the
top and died on "Table ... already exists", wedging the boot loop
permanently.

Guard the schema changes so a re-run after a partial failure recovers:
- 0100: CREATE TABLE ... if_not_exists, catalog-check the index, make the
  backfill idempotent with an anti-join, DROP TRIGGER IF EXISTS before
  each CREATE TRIGGER (both MySQL and Postgres paths).
- 0101: same treatment; backfill uses INSERT IGNORE / ON CONFLICT DO
  NOTHING, triggers dropped before recreation, view already drops first.
- 0103: skip add_column for provider ids that are already present.

0102 already used if_not_exists / catalog checks; this brings the rest of
the batch in line. Verified by reproducing the wedged state (version at
0099 with the later tables already present) and confirming upgrade head
now recovers cleanly to 0103, plus the rom_facets and stats test suites.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 21:54:33 -04:00
2026-07-19 20:35:51 -04:00
2026-07-19 09:56:14 -04:00
2026-04-15 19:20:17 -04:00
2026-07-01 08:58:00 -04:00
2025-07-03 23:37:00 -03:00
2024-05-21 19:22:14 -04:00
2026-06-07 09:16:50 -04:00
2024-02-11 16:41:36 +01:00
2026-07-19 20:35:51 -04:00
2024-07-09 13:43:14 +02:00

romm logo

A beautiful, powerful, self-hosted ROM manager and player.

Trendshift hackernews badge
selfh.st badge Discord

Overview

RomM (ROM Manager) allows you to scan, enrich, browse and play your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes, and custom tags, RomM is a must-have for anyone who plays on emulators.

Features

  • Scan and enhance your game library with metadata from IGDB, Screenscraper and MobyGames
  • Fetch custom artwork from SteamGridDB
  • Display your achievements from Retroachievements
  • Metadata available for 400+ platforms
  • Play games directly from the browser using EmulatorJS and RuffleRS
  • Share your library with friends with limited access and permissions
  • Official apps for Playnite, Android and CFWs
  • Supports multi-disk games, DLCs, mods, hacks, patches, and manuals
  • Parse and filter by tags in filenames
  • View, upload, update, and delete games from any modern web browser

Preview

🖥 Desktop 📱 Mobile
desktop preview mobile preview

Installation

To start using RomM, check out the Quick Start Guide in the docs. If you are having issues with RomM, please review the page for troubleshooting steps.

Contributing

To contribute to RomM, please check Contribution Guide.

Official apps

Apps and integrations built and maintained by the RomM team.

  • Argosy by @tmgast: Native Android client for installing and launching games.
  • Grout by @BrandonKowalski: Download and manage games from your RomM instance directly on your Linux based retro handheld. Supports: Allium, Batocera, Knulli, MinUI, muOS, NextUI, Onion, ROCKNIX, Spruce, TrimUI
  • Playnite plugin by @gantoine: Library plugin for Playnite

Community

Here are a few projects maintained by members of our community. Please note that the RomM team does not regularly review their source code.

Mobile

Desktop

Handhelds

Other

Join us on Discord, where you can ask questions, submit ideas, get help, showcase your collection, and discuss RomM with other users.

discord-invite-img

Technical Support

If you have any issues with RomM, please open an issue in this repository.

Financial Support

Consider supporting the development of this project on Open Collective. All funds will be used to cover the costs of hosting, development, and maintenance of RomM.

oc-donate-img

Our Friends

Here are a few projects that we think you might like:

  • EmulatorJS: An embeddable, browser-based emulator
  • RetroDECK: Retro gaming on SteamOS and Linux
  • ES-DE Frontend: Emulator frontend for Linux, macOS and Windows
  • Gaseous: Another ROM manager with web-based emulator
  • Retrom: A centralized game library/collection management service
  • Drop: Steam-like experience for DRM-free games
  • LanCommander: Digital game platform for PC games
  • Steam ROM Manager: An app for managing ROMs in Steam
Description
No description provided
Readme AGPL-3.0 493 MiB
Languages
Python 50.1%
Vue 40.3%
TypeScript 7.2%
CSS 0.9%
Shell 0.6%
Other 0.8%