mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
1de94a9979
* Added "migration of migrations" to transfer the data from the __diesel_schema_migrations table to the refinery_schema_history table * Removed all down migrations as refinery does not support down migrations * Changed all diesel up migrations to refinery naming format * Added --sql-log-mode parameter to veloren-server-cli to allow SQL tracing and profiling * Added /disconnect_all_players admin command * Added disconnectall CLI command * Fixes for several potential persistence-related race conditions
58 lines
1.3 KiB
SQL
58 lines
1.3 KiB
SQL
-- This migration updates the capacity of existing player inventories from 18 to 36
|
|
UPDATE
|
|
inventory
|
|
SET
|
|
items = json_object(
|
|
'amount',
|
|
(
|
|
SELECT
|
|
json_extract(items, '$.amount')
|
|
from
|
|
inventory
|
|
),
|
|
'slots',
|
|
json_insert(
|
|
(
|
|
SELECT
|
|
json_extract(items, '$.slots')
|
|
from
|
|
inventory
|
|
),
|
|
'$[18]',
|
|
json("null"),
|
|
'$[19]',
|
|
json("null"),
|
|
'$[20]',
|
|
json("null"),
|
|
'$[21]',
|
|
json("null"),
|
|
'$[22]',
|
|
json("null"),
|
|
'$[23]',
|
|
json("null"),
|
|
'$[24]',
|
|
json("null"),
|
|
'$[25]',
|
|
json("null"),
|
|
'$[26]',
|
|
json("null"),
|
|
'$[27]',
|
|
json("null"),
|
|
'$[28]',
|
|
json("null"),
|
|
'$[29]',
|
|
json("null"),
|
|
'$[30]',
|
|
json("null"),
|
|
'$[31]',
|
|
json("null"),
|
|
'$[32]',
|
|
json("null"),
|
|
'$[33]',
|
|
json("null"),
|
|
'$[34]',
|
|
json("null"),
|
|
'$[35]',
|
|
json("null")
|
|
)
|
|
); |