summaryrefslogtreecommitdiffstats
path: root/troggle-inspectdb.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-27 12:04:34 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-27 12:04:34 +0100
commitca6f7ed587f5d4b4f20573db46ec0d154b0d2666 (patch)
tree3caf41020adf0681f7bccd2e11cb3cb82f91f460 /troggle-inspectdb.py
parente2713cfe2d705e950c1009b08b8acc40404c6ea1 (diff)
downloadtroggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.tar.gz
troggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.tar.bz2
troggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.zip
move function
Diffstat (limited to 'troggle-inspectdb.py')
-rw-r--r--troggle-inspectdb.py11
1 files changed, 11 insertions, 0 deletions
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'