Skip to content

docs(provincesystem): new table names, code session sweep and status checks - #296

Merged
ryanbarlow97 merged 2 commits into
mainfrom
ps-db-cleanup-2
Oct 17, 2026
Merged

ryanbarlow97 merged 2 commits into
mainfrom
ps-db-cleanup-2

Conversation

@ryanbarlow97

@ryanbarlow97 ryanbarlow97 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Companion to TF-Minecraft/TFMCWeb#268. Stacked on #295.

  • Table names: login_codes, code_sessions, skin_submissions, player_notifications, character_creation_requests, character_creation_wardrobe and war_declaration_codes in architecture, skins, auth-security, tfmcweb, DEPLOY (preview scrub) and RPCharacters realm-wipe.
  • Columns: drink_textures.custom_model_data (DrinkBuilder still sends cmd); view-as Profile codes record minted_via = 'staff_view' with the view's session in view_session_id.
  • Housekeeping: the hourly sweep also deletes expired code sessions (ops/postgresql.md, auth-security, skins).
  • Constraints: CHECKs on code scope, minted_via and the submission, creation request and lore item statuses (ops/postgresql.md).

The _json column renames, timestamptz conversions and the dropped map_ledger_days.captured_at_ts had no Docs mentions; API values are unchanged, so ledger and LuckPerms payload docs stay as they are.

Checks: python -m unittest discover -s scripts -p 'test_*.py' and python scripts/check-indexes.py pass.

🤖 Generated with Claude Code

@ryanbarlow97
ryanbarlow97 force-pushed the ps-db-cleanup-2 branch 2 times, most recently from 16184ce to b01cc4c Compare October 17, 2026 13:02
Base automatically changed from ps-db-cleanup-1 to main October 17, 2026 13:26
ryanbarlow97 and others added 2 commits October 17, 2026 13:26
…checks

codes, sessions and submissions are now login_codes, code_sessions and
skin_submissions; character creation, war declaration and player
notification tables are renamed too. drink_textures.cmd is
custom_model_data, view-as Profile codes keep the view's session in
view_session_id, status and scope columns carry CHECK constraints,
LuckPerms node tables have primary keys and the hourly sweep deletes
expired code sessions.

Companion to TF-Minecraft/TFMCWeb#268.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ProvinceSystem#268 no longer adds primary keys to lp_user_nodes and
lp_group_nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ryanbarlow97
ryanbarlow97 merged commit be6fe40 into main Oct 17, 2026
2 checks passed
@ryanbarlow97
ryanbarlow97 deleted the ps-db-cleanup-2 branch October 17, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant