diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-27 12:04:34 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-27 12:04:34 +0100 |
commit | ca6f7ed587f5d4b4f20573db46ec0d154b0d2666 (patch) | |
tree | 3caf41020adf0681f7bccd2e11cb3cb82f91f460 /troggle-inspectdb.py | |
parent | e2713cfe2d705e950c1009b08b8acc40404c6ea1 (diff) | |
download | troggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.tar.gz troggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.tar.bz2 troggle-ca6f7ed587f5d4b4f20573db46ec0d154b0d2666.zip |
move function
Diffstat (limited to 'troggle-inspectdb.py')
-rw-r--r-- | troggle-inspectdb.py | 11 |
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' |