Skip to content

Commit

Permalink
fix: add support for data with global id fields that does not use cha…
Browse files Browse the repository at this point in the history
…nge detection
  • Loading branch information
stdavis committed Jun 10, 2024
1 parent 2ff8b94 commit d42c961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/forklift/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def _mirror_fields(source, destination):
"DateOnly": "DATEONLY",
"Double": "DOUBLE",
"Guid": "GUID",
"GlobalID": "GUID",
"Integer": "LONG",
"Single": "FLOAT",
"SmallInteger": "SHORT",
Expand All @@ -492,7 +493,7 @@ def _mirror_fields(source, destination):

add_fields = []
for field in arcpy.da.Describe(source)["fields"]:
if field.type in ["OID", "GlobalID"]:
if field.type == "OID":
continue

add_fields.append([field.name, TYPES[field.type], field.aliasName, field.length])
Expand Down

0 comments on commit d42c961

Please sign in to comment.