Skip to content

Commit

Permalink
add default site container for user
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 19, 2024
1 parent f490cfd commit 17f21fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loginSystem/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 5 additions & 0 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 17f21fb

Please sign in to comment.