mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 15:43:49 +01:00
fix(stage): fix deadlock that was preventing stage change.
This commit is contained in:
15
schemas/patch-schema/27-fix-character-defaults.sql
Normal file
15
schemas/patch-schema/27-fix-character-defaults.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
BEGIN;
|
||||
|
||||
-- Initialize otomoairou (mercenary data) with default empty data for characters that have NULL or empty values
|
||||
-- This prevents error logs when loading mercenary data during zone transitions
|
||||
UPDATE characters
|
||||
SET otomoairou = decode(repeat('00', 10), 'hex')
|
||||
WHERE otomoairou IS NULL OR length(otomoairou) = 0;
|
||||
|
||||
-- Initialize platemyset (plate configuration) with default empty data for characters that have NULL or empty values
|
||||
-- This prevents error logs when loading plate data during zone transitions
|
||||
UPDATE characters
|
||||
SET platemyset = decode(repeat('00', 1920), 'hex')
|
||||
WHERE platemyset IS NULL OR length(platemyset) = 0;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user