mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
And similar fix for BuildOrder reference field
(cherry picked from commit ca0f4e0031
)
This commit is contained in:
@ -24,6 +24,10 @@ def build_refs(apps, schema_editor):
|
|||||||
except Exception: # pragma: no cover
|
except Exception: # pragma: no cover
|
||||||
ref = 0
|
ref = 0
|
||||||
|
|
||||||
|
# Clip integer value to ensure it does not overflow database field
|
||||||
|
if ref > 0x7fffffff:
|
||||||
|
ref = 0x7fffffff
|
||||||
|
|
||||||
build.reference_int = ref
|
build.reference_int = ref
|
||||||
build.save()
|
build.save()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user