Set default models for Catapult -> Catapult mirror import

This commit is contained in:
Lance Edgar 2020-09-26 15:19:09 -05:00
parent 232d8c4613
commit 6631cf833b

View file

@ -266,6 +266,8 @@ def install_theo_app(c, envname, production, port, from_source=False,
if env.theo_mirror_posdb and env.theo_integrates_with == 'catapult': if env.theo_mirror_posdb and env.theo_integrates_with == 'catapult':
postgresql.sql(c, "insert into setting values ('tailbone.engines.catapult.pretend_default', 'mirror')", postgresql.sql(c, "insert into setting values ('tailbone.engines.catapult.pretend_default', 'mirror')",
database=dbname) database=dbname)
postgresql.sql(c, "insert into setting values ('rattail_onager.catapult.importing.db.default_models', 'VersionInfo Department Vendor Brand FamilyLine StockInventory Prefix Suffix Customer Employee PhoneDescription Phone EmailDescription Email AddressDescription Address')",
database=dbname)
# maybe establish the mirror DB # maybe establish the mirror DB
if env.theo_mirror_posdb == 'mysql': if env.theo_mirror_posdb == 'mysql':