mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
models: Deduplicate definitions of push tokens.
Since c57c4cf703, these are no longer
different implementations, so we can deduplicate them. Because Django
is smart, no migration is required.
This commit is contained in:
@@ -27,7 +27,6 @@ class RemotePushDeviceToken(AbstractPushDeviceToken):
|
||||
server = models.ForeignKey(RemoteZulipServer, on_delete=models.CASCADE) # type: RemoteZulipServer
|
||||
# The user id on the remote server for this device device this is
|
||||
user_id = models.BigIntegerField(db_index=True) # type: int
|
||||
token = models.CharField(max_length=4096, db_index=True) # type: bytes
|
||||
|
||||
class Meta:
|
||||
unique_together = ("server", "user_id", "kind", "token")
|
||||
|
||||
Reference in New Issue
Block a user