Skip to content

Commit 33c4648

Browse files
committed
stub out SchemaEditor methods
1 parent 2d96786 commit 33c4648

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

django_mongodb/schema.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
55
def create_model(self, model):
66
pass
77

8+
def delete_model(self, model):
9+
pass
10+
811
def add_field(self, model, field):
912
pass
1013

@@ -14,11 +17,26 @@ def alter_field(self, model, old_field, new_field, strict=False):
1417
def remove_field(self, model, field):
1518
pass
1619

20+
def alter_index_together(self, model, old_index_together, new_index_together):
21+
pass
22+
1723
def alter_unique_together(self, model, old_unique_together, new_unique_together):
1824
pass
1925

2026
def add_index(self, model, index):
2127
pass
2228

29+
def rename_index(self, model, old_index, new_index):
30+
pass
31+
2332
def remove_index(self, model, index):
2433
pass
34+
35+
def add_constraint(self, model, constraint):
36+
pass
37+
38+
def remove_constraint(self, model, constraint):
39+
pass
40+
41+
def alter_db_table(self, model, old_db_table, new_db_table):
42+
pass

0 commit comments

Comments
 (0)