PhotosAPI/migrations/202311251700.py

10 lines
267 B
Python
Raw Permalink Normal View History

2023-11-25 19:05:12 +02:00
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"})