Skip to content

Create a system for database migrations based on DB version #64

Description

@Gehock

Basically make this code redundant and convert the old DB when it is loaded for the first time:

operationbot/roleGroup.py

Lines 100 to 107 in 4a4d001

# TODO: this should be handled in EventDatabase instead based on the DB
# version
def get_corrected_name(self, roleData):
if "displayName" in roleData:
show_name = roleData["displayName"]
else:
show_name = roleData["show_name"]
return show_name

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions