From 6631cf833b1373bb1ddf20a10c3e74f1c5e27f3f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 26 Sep 2020 15:19:09 -0500 Subject: [PATCH] Set default models for Catapult -> Catapult mirror import --- machines/theo-server/fabfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machines/theo-server/fabfile.py b/machines/theo-server/fabfile.py index 102a27c..b0c91f5 100644 --- a/machines/theo-server/fabfile.py +++ b/machines/theo-server/fabfile.py @@ -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': postgresql.sql(c, "insert into setting values ('tailbone.engines.catapult.pretend_default', 'mirror')", 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 if env.theo_mirror_posdb == 'mysql':