from libbot import sync from mongodb_migrations.base import BaseMigration class Migration(BaseMigration): def upgrade(self): sync.config_set("api", {"url": "https://api.garbagebot.eu"}) sync.config_delete("database_api", missing_ok=True) def downgrade(self): sync.config_delete("api", missing_ok=True) sync.config_set( "database_api", { "user": None, "password": None, "host": "127.0.0.1", "port": 27017, "name": "garbage_reminder", }, )