Merge pull request #877 from mjibson/check-max-id
Allow None for max_id during migrations
This commit is contained in:
commit
30250bdf7f
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ def yield_random_entries(batch_query, primary_key_field, batch_size, max_id):
|
|||
an "id" field which can be inspected.
|
||||
"""
|
||||
|
||||
max_id = max(max_id, 1)
|
||||
allocator = CompletedKeys(max_id + 1)
|
||||
|
||||
try:
|
||||
|
|
Reference in a new issue