add config to administrator

This commit is contained in:
Usman Nasir
2021-02-18 14:56:01 +05:00
parent 638fa5bf24
commit d927423fd4
2 changed files with 6 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ class Administrator(models.Model):
acl = models.ForeignKey(ACL, default=1, on_delete=models.PROTECT) acl = models.ForeignKey(ACL, default=1, on_delete=models.PROTECT)
twoFA = models.IntegerField(default=0) twoFA = models.IntegerField(default=0)
secretKey = models.CharField(max_length=50, default='None') secretKey = models.CharField(max_length=50, default='None')
config = models.TextField()

View File

@@ -1210,6 +1210,11 @@ imap_folder_list_limit = 0
except: except:
pass pass
try:
cursor.execute('ALTER TABLE loginSystem_administrator ADD config longtext')
except:
pass
try: try:
cursor.execute('ALTER TABLE dockerManager_containers ADD volumes longtext') cursor.execute('ALTER TABLE dockerManager_containers ADD volumes longtext')
except: except: