v0.2.0 #26

Merged
profitroll merged 16 commits from dev into main 2025-02-10 13:48:56 +02:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit cd9e4187f7 - Show all commits

View File

@ -49,6 +49,7 @@ def main() -> None:
# Perform migration if command line argument was provided
if args.migrate:
logger.info("Performing migrations...")
migrate_database()
intents: Intents = Intents().all()

View File

@ -30,11 +30,11 @@ class Migration(BaseMigration):
exc,
)
self.db.groups.update_many(
self.db.users.update_many(
{"customchannel": {"$exists": True}},
{"$rename": {"customchannel": "custom_channel"}},
)
self.db.groups.update_many(
self.db.users.update_many(
{"customrole": {"$exists": True}},
{"$rename": {"customrole": "custom_role"}},
)
@ -69,11 +69,11 @@ class Migration(BaseMigration):
exc,
)
self.db.test_collection.update_many(
self.db.users.update_many(
{"custom_channel": {"$exists": True}},
{"$rename": {"custom_channel": "customchannel"}},
)
self.db.test_collection.update_many(
self.db.users.update_many(
{"custom_role": {"$exists": True}},
{"$rename": {"custom_role": "customrole"}},
)