mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
First stab at some migration creation commands
This commit is contained in:
@@ -60,3 +60,10 @@ class MigrationRecorder(object):
|
||||
"""
|
||||
self.ensure_schema()
|
||||
self.Migration.objects.filter(app=app, name=name).delete()
|
||||
|
||||
@classmethod
|
||||
def flush(cls):
|
||||
"""
|
||||
Deletes all migration records. Useful if you're testing migrations.
|
||||
"""
|
||||
cls.Migration.objects.all().delete()
|
||||
|
||||
Reference in New Issue
Block a user