Set default models for Catapult -> Catapult mirror import
This commit is contained in:
parent
232d8c4613
commit
6631cf833b
2
machines/theo-server/fabfile.py
vendored
2
machines/theo-server/fabfile.py
vendored
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue