Download:
child 7:43cbf5d4ef13
parent 5:eaa6df85550a
6:3262fb214544
Anton Shestakov <av6@dwimlabs.net>, Mon, 13 Jun 2016 11:22:32 +0800
candolint: revision + node hash is still unique per project Even though SQLite doesn't enforce uniqueness if rev is NULL, the index is still useful in BaseModel.create_or_get().

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Mon Jun 13 11:14:12 2016 +0800
+++ b/candolint/models.py Mon Jun 13 11:22:32 2016 +0800
@@ -51,7 +51,7 @@
class Meta:
indexes = (
- (('node', 'project'), True),
+ (('rev', 'node', 'project'), True),
)