Fix "default models" setting for Catapult DB mirror

this gives us all data required for subsequent Catapult (mirror) -> Theo
This commit is contained in:
Lance Edgar 2020-09-26 18:55:01 -05:00
parent fcdbed1e23
commit 41fd8d701c

View file

@ -266,7 +266,7 @@ 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')",
postgresql.sql(c, "insert into setting values ('rattail_onager.catapult.importing.db.default_models', 'VersionInfo Store Department Vendor Brand FamilyLine ComboGroupProfile WeightProfile PricingLevelInfo DiscountProfile StockInventory PricingLevelDetail Prefix Suffix DiscountGroup Customer Employee PhoneDescription Phone EmailDescription Email AddressDescription Address')",
database=dbname)
postgresql.sql(c, "insert into setting values ('rattail.mail.rattail_onager_import_catapult_updates.subject', 'Changes for Catapult (production) -> Catapult (mirror)')",
database=dbname)