table for scheduled backup logs

This commit is contained in:
Usman Nasir
2020-05-20 22:35:54 +05:00
parent dd8cd6fc2f
commit 12a5401775
2 changed files with 2 additions and 0 deletions

View File

@@ -1245,6 +1245,7 @@ class Upgrade:
`port` varchar(15) NOT NULL, `port` varchar(15) NOT NULL,
`jobFailedSites` int(11) NOT NULL, `jobFailedSites` int(11) NOT NULL,
`jobSuccessSites` int(11) NOT NULL, `jobSuccessSites` int(11) NOT NULL,
`location` int(11) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
)""" )"""
try: try:

View File

@@ -55,6 +55,7 @@ class BackupJob(models.Model):
port = models.CharField(max_length=15) port = models.CharField(max_length=15)
jobSuccessSites = models.IntegerField() jobSuccessSites = models.IntegerField()
jobFailedSites = models.IntegerField() jobFailedSites = models.IntegerField()
location = models.IntegerField()
class BackupJobLogs(models.Model): class BackupJobLogs(models.Model):
owner = models.ForeignKey(BackupJob, on_delete=models.CASCADE) owner = models.ForeignKey(BackupJob, on_delete=models.CASCADE)