Migration for quotas added
This commit is contained in:
9
migrations/202311251700.py
Normal file
9
migrations/202311251700.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from mongodb_migrations.base import BaseMigration
|
||||
|
||||
|
||||
class Migration(BaseMigration):
|
||||
def upgrade(self):
|
||||
self.db.users.update_many({}, {"$set": {"quota": None}})
|
||||
|
||||
def downgrade(self):
|
||||
self.db.test_collection.update_many({}, {"$unset": "quota"})
|
Reference in New Issue
Block a user