WIP: #50
This commit is contained in:
21
migrations/202405270030.py
Normal file
21
migrations/202405270030.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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",
|
||||
},
|
||||
)
|
Reference in New Issue
Block a user