isle.pizza/server/migrations/0006_cloud_storage.sql
foxtacles 93a0c46b46
Add multiplayer frontend updates (#30)
* Add multiplayer, cloud sync, crash reporting, scene player, and memories features

* Fix multiplayer overlay showing "Waiting for ..." with no names

* Fix OGL link in README

* Update README with architecture, backend setup, environment variables, and CI docs

* Fix save editor showing wrong name for orphaned save slots

Players.gsi could fall out of sync with save files during cloud sync
because the saveSlotWritten event only tracked the slot file and
History.gsi for incremental upload, not Players.gsi. This caused
slots without a matching Players.gsi entry to display the first
player's name due to a fallback to index 0.

- Track Players.gsi in saveSlotWritten handler for incremental uploads
- Remove broken fallback to player index 0 in name resolution
- Hide save slots with no Players.gsi entry from the save editor UI
2026-04-05 17:13:23 +02:00

16 lines
432 B
SQL

-- Cloud save files (BLOBs)
CREATE TABLE IF NOT EXISTS user_saves (
user_id TEXT NOT NULL,
filename TEXT NOT NULL,
data BLOB NOT NULL,
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
PRIMARY KEY (user_id, filename)
);
-- Cloud config (isle.ini text)
CREATE TABLE IF NOT EXISTS user_config (
user_id TEXT PRIMARY KEY,
ini_text TEXT NOT NULL,
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
);