mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
feat(db): bbb_autosave table for the client's BBB autosave
The client sends SetBBBAutosave (996) with the model being built every five minutes, before an AFK kick and before quitting, and expects the server to rebuild an unfinished model later (RebuildBBBAutosaveMsg). This keeps the last one per character with the model items that were in the BBB inventory at the time. MySQL 82 / SQLite 65; parity test included. Refs #1632 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
9
migrations/dlu/mysql/82_bbb_autosave.sql
Normal file
9
migrations/dlu/mysql/82_bbb_autosave.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
/* The brick by brick model each character was building when their client last sent SetBBBAutosave, and the model items
|
||||
that were in their BBB inventory at that time. Rebuilt into models when a build ends without a save (see
|
||||
docs/BuildWorkflow.md). */
|
||||
CREATE TABLE IF NOT EXISTS bbb_autosave (
|
||||
character_id BIGINT NOT NULL PRIMARY KEY,
|
||||
lxfml MEDIUMBLOB NOT NULL,
|
||||
source_items TEXT NOT NULL,
|
||||
updated_at BIGINT NOT NULL DEFAULT 0
|
||||
);
|
||||
7
migrations/dlu/sqlite/65_bbb_autosave.sql
Normal file
7
migrations/dlu/sqlite/65_bbb_autosave.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
/* bbb_autosave: see the MySQL migration. */
|
||||
CREATE TABLE IF NOT EXISTS bbb_autosave (
|
||||
character_id BIGINT NOT NULL PRIMARY KEY,
|
||||
lxfml BLOB NOT NULL,
|
||||
source_items TEXT NOT NULL,
|
||||
updated_at BIGINT NOT NULL DEFAULT 0
|
||||
);
|
||||
Reference in New Issue
Block a user