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

Redis migrations: Run no migrations on new installations #598

Open
RAnders00 opened this issue Oct 23, 2019 · 1 comment
Open

Redis migrations: Run no migrations on new installations #598

RAnders00 opened this issue Oct 23, 2019 · 1 comment

Comments

@RAnders00
Copy link
Contributor

RAnders00 commented Oct 23, 2019

if current_migration_revision is None:
    current_migration_revision = max(revision_ids)
    save_current_migration_revision()
    return
  • If no migration revisions exist, the version should be set to -1 so we run 0 once it's created
  • Same logic should apply to a config migration if we ever create that
@RAnders00
Copy link
Contributor Author

For hacktoberfest users, the relevant package is https://github.com/pajbot/pajbot/tree/master/pajbot/migration

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

No branches or pull requests

1 participant