We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4bfb1a commit bec8e6aCopy full SHA for bec8e6a
1 file changed
djongo/sql2mongo/query.py
@@ -485,6 +485,16 @@ def _rename_column(self):
485
486
def _rename_collection(self):
487
self.db[self.left_table].rename(self._new_name)
488
+ self.db['__schema__'].update_one(
489
+ {
490
+ 'name': self.left_table
491
+ },
492
493
+ '$set': {
494
+ 'name': self._new_name
495
+ }
496
497
+ )
498
499
def _alter(self, statement: SQLStatement):
500
self.execute = lambda: None
0 commit comments