mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
fix: create user_binary row on character creation (#176)
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.
This commit is contained in:
6
server/migrations/sql/0006_backfill_user_binary.sql
Normal file
6
server/migrations/sql/0006_backfill_user_binary.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user