Closes #17; Fixed migrations
This commit is contained in:
@@ -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"}},
|
||||
)
|
||||
|
Reference in New Issue
Block a user