mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-18 17:14:39 -04:00
make snapshots unique again
This commit is contained in:
parent
ae208435c9
commit
a79dd4685a
2 changed files with 20 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Snapshot(models.Model):
|
|||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
|
||||
url = models.URLField(unique=True)
|
||||
timestamp = models.CharField(max_length=32, null=True, default=None, db_index=True)
|
||||
timestamp = models.CharField(max_length=32, unique=True, db_index=True)
|
||||
|
||||
title = models.CharField(max_length=128, null=True, default=None, db_index=True)
|
||||
tags = models.CharField(max_length=256, null=True, default=None, db_index=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue