added server and realm tabs to inventory screen
This commit is contained in:
parent
ee425e224e
commit
acab2f017d
12 changed files with 647 additions and 151 deletions
|
|
@ -16,9 +16,9 @@ SELECT id, username FROM auth.users WHERE username = 'TARGET_USERNAME';
|
|||
BEGIN;
|
||||
|
||||
-- Clear existing props and avatars for the user
|
||||
DELETE FROM props.active_avatars WHERE user_id = 'USER_UUID';
|
||||
DELETE FROM props.avatars WHERE user_id = 'USER_UUID';
|
||||
DELETE FROM props.inventory WHERE user_id = 'USER_UUID';
|
||||
DELETE FROM auth.active_avatars WHERE user_id = 'USER_UUID';
|
||||
DELETE FROM auth.avatars WHERE user_id = 'USER_UUID';
|
||||
DELETE FROM auth.inventory WHERE user_id = 'USER_UUID';
|
||||
|
||||
-- Reinitialize with current server props
|
||||
SELECT auth.initialize_new_user('USER_UUID');
|
||||
|
|
@ -29,8 +29,8 @@ COMMIT;
|
|||
3. Verify the results:
|
||||
|
||||
```sql
|
||||
SELECT COUNT(*) as inventory_count FROM props.inventory WHERE user_id = 'USER_UUID';
|
||||
SELECT id, name, slot_number FROM props.avatars WHERE user_id = 'USER_UUID';
|
||||
SELECT COUNT(*) as inventory_count FROM auth.inventory WHERE user_id = 'USER_UUID';
|
||||
SELECT id, name, slot_number FROM auth.avatars WHERE user_id = 'USER_UUID';
|
||||
```
|
||||
|
||||
## Example: Reinitialize ranosh
|
||||
|
|
@ -39,9 +39,9 @@ SELECT id, name, slot_number FROM props.avatars WHERE user_id = 'USER_UUID';
|
|||
psql -d chattyness <<'EOF'
|
||||
BEGIN;
|
||||
|
||||
DELETE FROM props.active_avatars WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
DELETE FROM props.avatars WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
DELETE FROM props.inventory WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
DELETE FROM auth.active_avatars WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
DELETE FROM auth.avatars WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
DELETE FROM auth.inventory WHERE user_id = '57a12201-ea0f-4545-9ccc-c4e67ea7e2c4';
|
||||
|
||||
SELECT auth.initialize_new_user('57a12201-ea0f-4545-9ccc-c4e67ea7e2c4');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue