diff --git a/loginSystem/models.py b/loginSystem/models.py index 70178e821..4474a97fd 100755 --- a/loginSystem/models.py +++ b/loginSystem/models.py @@ -92,3 +92,6 @@ class Administrator(models.Model): twoFA = models.IntegerField(default=0) secretKey = models.CharField(max_length=50, default='None') config = models.TextField(default='{}') + + #### + defaultSite = models.IntegerField(default=0) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 0546c22a2..63894cb39 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -810,6 +810,11 @@ def applyLoginSystemMigrations(): except: pass + try: + cursor.execute('ALTER TABLE loginSystem_administrator ADD defaultSite integer DEFAULT 0') + except: + pass + try: cursor.execute('ALTER TABLE loginSystem_administrator ADD twoFA integer DEFAULT 0') except: