Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Repair Utility #82

Open
seisatsu opened this issue Jul 6, 2020 · 1 comment
Open

Database Repair Utility #82

seisatsu opened this issue Jul 6, 2020 · 1 comment
Labels
enhancement New feature or request utility Has to do with a tool or utility

Comments

@seisatsu
Copy link
Owner

seisatsu commented Jul 6, 2020

Add a utility for repairing common database errors.

@seisatsu seisatsu added enhancement New feature or request utility Has to do with a tool or utility labels Jul 6, 2020
@seisatsu
Copy link
Owner Author

Scan for, report, and repair the following issues:

  • Player in nonexistent room: Move the player to room 0.
  • Nonexistent item in user inventory: Remove the item.
  • Item with no location: Move the item to its primary owner's inventory.
    • Item's primary owner also doesn't exist: Move the item to room 0.
  • Object with nonexistent owner: Remove the nonexistent owner record.
  • Object with no owners: Add as the primary owner.
  • Exit to nonexistent room: Break the exit.
  • Entrance record for nonexistent room: Remove the entrance record.
  • Telekey for nonexistent room: Unpair the telekey.
  • Exit with nonexistent key: Unpair the key.
  • Duplified item not in primary owner's inventory: Add to the primary owner's inventory.
  • Missing database field for object: Add the field.
  • Invalid type for database field: Reset to default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request utility Has to do with a tool or utility
Projects
None yet
Development

No branches or pull requests

1 participant