mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-05-06 14:24:15 +02:00
New characters were missing their user_binary record, preventing them from entering their house. Both sign server and API character creation paths now insert the row. A backfill migration fixes existing databases.
7 lines
260 B
SQL
7 lines
260 B
SQL
-- Backfill user_binary rows for characters that were created without one.
|
|
-- This fixes #176: new characters could not enter their house.
|
|
INSERT INTO user_binary (id)
|
|
SELECT c.id FROM characters c
|
|
LEFT JOIN user_binary ub ON ub.id = c.id
|
|
WHERE ub.id IS NULL;
|