Change update_unit_price queries near sync_model_data and change its comment.

This commit is contained in:
Albert Cervera i Areny 2019-10-10 10:08:44 +02:00
parent 30050732f6
commit 12fd624df1

View file

@ -512,12 +512,6 @@ before:
query: ALTER TABLE account_payment_sepa_message ALTER COLUMN message TYPE BYTEA USING message::BYTEA;
after:
- comment: We need this query before 'after' scripts are executed as otherwise the ./upgrades/after/sync_model_data.py script fails
version: 5.2
query: update ir_model_data set fs_values = REPLACE(fs_values, '["update_unit_price",true]', '["update_unit_price",false]') WHERE fs_values like '%["update_unit_price",true]%';
- comment: We need this query before 'after' scripts are executed as otherwise the ./upgrades/after/sync_model_data.py script fails
query: update ir_model_data set values = REPLACE(values, '["update_unit_price",true]', '["update_unit_price",false]') WHERE values like '%["update_unit_price",true]%';
version: 5.2
- DELETE FROM ir_translation WHERE module = 'account_es_pyme';
- comment: # translations fuzzy to false
query: UPDATE ir_translation set fuzzy = false where fuzzy = true and res_id = -1;
@ -661,6 +655,13 @@ after:
- script: ./upgrades/after/convert_domain_rules.py
version: 4.8
- comment: We need this query before sync_model_data.py otherwise it fails
version: 5.2
query: update ir_model_data set fs_values = REPLACE(fs_values, '["update_unit_price",true]', '["update_unit_price",false]') WHERE fs_values like '%["update_unit_price",true]%';
- comment: We need this query before sync_model_data.py otherwise it fails
version: 5.2
query: update ir_model_data set values = REPLACE(values, '["update_unit_price",true]', '["update_unit_price",false]') WHERE values like '%["update_unit_price",true]%';
- script: ./upgrades/after/sync_model_data.py
version: 4.8