Added urgent flag in model
This commit is contained in:
parent
5370395143
commit
ee69baf7de
@ -6,6 +6,7 @@ from django.utils import timezone
|
|||||||
|
|
||||||
|
|
||||||
class Migration(models.Model):
|
class Migration(models.Model):
|
||||||
|
"""This is the migration class"""
|
||||||
id = models.CharField(max_length=200, unique=True,
|
id = models.CharField(max_length=200, unique=True,
|
||||||
default=uuid.uuid4, primary_key=True)
|
default=uuid.uuid4, primary_key=True)
|
||||||
submit_time = models.DateField('migrtation submitted on')
|
submit_time = models.DateField('migrtation submitted on')
|
||||||
@ -22,6 +23,7 @@ class Migration(models.Model):
|
|||||||
additional_domains = models.CharField(
|
additional_domains = models.CharField(
|
||||||
max_length=500, null=True, blank=True)
|
max_length=500, null=True, blank=True)
|
||||||
migration_type = models.CharField(max_length=200)
|
migration_type = models.CharField(max_length=200)
|
||||||
|
is_urgent = models.BooleanField(default=False)
|
||||||
|
|
||||||
def print_missed_migrations(self):
|
def print_missed_migrations(self):
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
|
|||||||
Reference in New Issue
Block a user