From ca6f7ed587f5d4b4f20573db46ec0d154b0d2666 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 27 Jun 2020 12:04:34 +0100 Subject: move function --- troggle-inspectdb.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'troggle-inspectdb.py') diff --git a/troggle-inspectdb.py b/troggle-inspectdb.py index c7a2514..e7f9401 100644 --- a/troggle-inspectdb.py +++ b/troggle-inspectdb.py @@ -15,3 +15,14 @@ from __future__ import unicode_literals from django.db import models + + +class DjangoMigrations(models.Model): + id = models.IntegerField(primary_key=True) # AutoField? + app = models.CharField(max_length=255) + name = models.CharField(max_length=255) + applied = models.DateTimeField() + + class Meta: + managed = False + db_table = 'django_migrations' -- cgit v1.2.3