mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
zilencer: Store the last-reported server version when storing analytics.
Servers since 216d2ec1bf
(version 2.0.0)
have submitted this, but we have never stored it.
This commit is contained in:
committed by
Tim Abbott
parent
d404febb29
commit
9bc41ca040
@@ -30,6 +30,7 @@ class RemoteZulipServer(models.Model):
|
||||
UUID_LENGTH = 36
|
||||
API_KEY_LENGTH = 64
|
||||
HOSTNAME_MAX_LENGTH = 128
|
||||
VERSION_MAX_LENGTH = 128
|
||||
|
||||
# The unique UUID (`zulip_org_id`) and API key (`zulip_org_key`)
|
||||
# for this remote server registration.
|
||||
@@ -42,6 +43,7 @@ class RemoteZulipServer(models.Model):
|
||||
hostname = models.CharField(max_length=HOSTNAME_MAX_LENGTH)
|
||||
contact_email = models.EmailField(blank=True, null=False)
|
||||
last_updated = models.DateTimeField("last updated", auto_now=True)
|
||||
last_version = models.CharField(max_length=VERSION_MAX_LENGTH, null=True)
|
||||
|
||||
# Whether the server registration has been deactivated.
|
||||
deactivated = models.BooleanField(default=False)
|
||||
|
Reference in New Issue
Block a user