Skip to content

Commit

Permalink
Merge pull request #90 from opengisch/enumwithtabs
Browse files Browse the repository at this point in the history
use 'obsolete' parameter createEnumTabs on ili2db 3 only
  • Loading branch information
signedav authored Apr 4, 2024
2 parents c90fa78 + 8e20e34 commit 1a4b6f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modelbaker/iliwrapper/ili2dbconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
self.append_args(args, extra_args, force_append=True)

self.append_args(args, ["--coalesceCatalogueRef"], True)
self.append_args(args, ["--createEnumTabs"], True)

if self.disable_validation:
self.append_args(args, ["--sqlEnableNull"], force_append=True)
Expand All @@ -276,10 +275,11 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
self.append_args(args, ["--createTypeConstraint"], True)
self.append_args(args, ["--createEnumTabsWithId"], True)
self.append_args(args, ["--createTidCol"], True)

# version 3 backwards compatibility (not needed in newer versions)
if self.create_import_tid:
self.append_args(args, ["--importTid"])
else:
# version 3 backwards compatibility (not needed in newer versions)
self.append_args(args, ["--createEnumTabs"], True)
if self.create_import_tid:
self.append_args(args, ["--importTid"])

if self.inheritance == "smart1":
self.append_args(args, ["--smart1Inheritance"])
Expand Down

0 comments on commit 1a4b6f3

Please sign in to comment.