mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
add db_index on url field
This commit is contained in:
parent
c438e49871
commit
d73f7d7d96
2 changed files with 19 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Tag(models.Model):
|
|||
class Snapshot(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
|
||||
url = models.URLField(unique=True)
|
||||
url = models.URLField(unique=True, db_index=True)
|
||||
timestamp = models.CharField(max_length=32, unique=True, db_index=True)
|
||||
|
||||
title = models.CharField(max_length=512, null=True, blank=True, db_index=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue