Add vehicles migrations
This commit is contained in:
parent
991119fb64
commit
26bb9d1e7b
|
@ -0,0 +1,72 @@
|
|||
[asset_vehicle]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = True
|
||||
mapping =
|
||||
source = vehicle_vehicle
|
||||
depends = company_employee
|
||||
transformation = asset_vehicle.ktr
|
||||
delete = True
|
||||
|
||||
[ir_action_act_window]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = False
|
||||
mapping =
|
||||
source = None
|
||||
depends =
|
||||
transformation =
|
||||
delete = False
|
||||
|
||||
[ir_action_act_window_view]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = False
|
||||
mapping =
|
||||
source = None
|
||||
depends =
|
||||
transformation =
|
||||
delete = False
|
||||
|
||||
[ir_model_access]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = False
|
||||
mapping =
|
||||
source = None
|
||||
depends =
|
||||
transformation =
|
||||
delete = False
|
||||
|
||||
[ir_ui_menu]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = False
|
||||
mapping =
|
||||
source = None
|
||||
depends =
|
||||
transformation =
|
||||
delete = False
|
||||
|
||||
[ir_ui_view]
|
||||
insert = False
|
||||
target = None
|
||||
parent = False
|
||||
script = False
|
||||
migrate = False
|
||||
mapping =
|
||||
source = None
|
||||
depends =
|
||||
transformation =
|
||||
delete = False
|
||||
|
|
@ -0,0 +1,905 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<transformation>
|
||||
<info>
|
||||
<name>asset_vehicle</name>
|
||||
<description/>
|
||||
<extended_description/>
|
||||
<trans_version/>
|
||||
<trans_type>Normal</trans_type>
|
||||
<trans_status>0</trans_status>
|
||||
<directory>/</directory>
|
||||
<parameters>
|
||||
</parameters>
|
||||
<log>
|
||||
<trans-log-table><connection/>
|
||||
<schema/>
|
||||
<table/>
|
||||
<size_limit_lines/>
|
||||
<interval/>
|
||||
<timeout_days/>
|
||||
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field></trans-log-table>
|
||||
<perf-log-table><connection/>
|
||||
<schema/>
|
||||
<table/>
|
||||
<interval/>
|
||||
<timeout_days/>
|
||||
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table>
|
||||
<channel-log-table><connection/>
|
||||
<schema/>
|
||||
<table/>
|
||||
<timeout_days/>
|
||||
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table>
|
||||
<step-log-table><connection/>
|
||||
<schema/>
|
||||
<table/>
|
||||
<timeout_days/>
|
||||
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table>
|
||||
</log>
|
||||
<maxdate>
|
||||
<connection/>
|
||||
<table/>
|
||||
<field/>
|
||||
<offset>0.0</offset>
|
||||
<maxdiff>0.0</maxdiff>
|
||||
</maxdate>
|
||||
<size_rowset>10000</size_rowset>
|
||||
<sleep_time_empty>50</sleep_time_empty>
|
||||
<sleep_time_full>50</sleep_time_full>
|
||||
<unique_connections>Y</unique_connections>
|
||||
<feedback_shown>Y</feedback_shown>
|
||||
<feedback_size>50000</feedback_size>
|
||||
<using_thread_priorities>Y</using_thread_priorities>
|
||||
<shared_objects_file/>
|
||||
<capture_step_performance>N</capture_step_performance>
|
||||
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
|
||||
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
<partitionschemas>
|
||||
</partitionschemas>
|
||||
<slaveservers>
|
||||
</slaveservers>
|
||||
<clusterschemas>
|
||||
</clusterschemas>
|
||||
<created_user>-</created_user>
|
||||
<created_date>2012/12/28 16:05:45.566</created_date>
|
||||
<modified_user>-</modified_user>
|
||||
<modified_date>2012/12/28 16:05:45.566</modified_date>
|
||||
</info>
|
||||
<notepads>
|
||||
</notepads>
|
||||
<connection>
|
||||
<name>source</name>
|
||||
<server>${source_host}</server>
|
||||
<type>POSTGRESQL</type>
|
||||
<access>Native</access>
|
||||
<database>${source}</database>
|
||||
<port>${source_port}</port>
|
||||
<username>${source_user}</username>
|
||||
<password>${source_password}</password>
|
||||
<servername/>
|
||||
<data_tablespace/>
|
||||
<index_tablespace/>
|
||||
<attributes>
|
||||
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>PORT_NUMBER</code><attribute>${source_port}</attribute></attribute>
|
||||
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
|
||||
</attributes>
|
||||
</connection>
|
||||
<connection>
|
||||
<name>target</name>
|
||||
<server>${target_host}</server>
|
||||
<type>POSTGRESQL</type>
|
||||
<access>Native</access>
|
||||
<database>${target}</database>
|
||||
<port>${target_port}</port>
|
||||
<username>${target_user}</username>
|
||||
<password>${target_password}</password>
|
||||
<servername/>
|
||||
<data_tablespace/>
|
||||
<index_tablespace/>
|
||||
<attributes>
|
||||
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>PORT_NUMBER</code><attribute>${target_port}</attribute></attribute>
|
||||
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
|
||||
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
|
||||
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
|
||||
</attributes>
|
||||
</connection>
|
||||
<order>
|
||||
<hop> <from>Select values</from><to>Table output</to><enabled>N</enabled> </hop> <hop> <from>Select values</from><to>target</to><enabled>Y</enabled> </hop> <hop> <from>Table input</from><to>source</to><enabled>N</enabled> </hop> <hop> <from>create_uid</from><to>write_uid</to><enabled>Y</enabled> </hop> <hop> <from>source</from><to>create_uid</to><enabled>Y</enabled> </hop> <hop> <from>target</from><to>Table output</to><enabled>N</enabled> </hop> <hop> <from>write_uid</from><to>Add constants</to><enabled>Y</enabled> </hop> <hop> <from>Add constants</from><to>write_uid 2</to><enabled>Y</enabled> </hop> <hop> <from>write_uid 2</from><to>template sequence</to><enabled>Y</enabled> </hop> <hop> <from>template sequence</from><to>Templates</to><enabled>Y</enabled> </hop> <hop> <from>Templates</from><to>product sequence</to><enabled>Y</enabled> </hop> <hop> <from>product sequence</from><to>products</to><enabled>Y</enabled> </hop> <hop> <from>assets</from><to>Select values</to><enabled>Y</enabled> </hop> <hop> <from>products</from><to>Code</to><enabled>Y</enabled> </hop> <hop> <from>Code</from><to>assets</to><enabled>Y</enabled> </hop> <hop> <from>Row Normaliser</from><to>Stream lookup</to><enabled>Y</enabled> </hop> <hop> <from>Stream lookup</from><to>prep</to><enabled>Y</enabled> </hop> <hop> <from>fields</from><to>Stream lookup</to><enabled>Y</enabled> </hop> <hop> <from>prep</from><to>property</to><enabled>Y</enabled> </hop> <hop> <from>Templates</from><to>Row Normaliser</to><enabled>Y</enabled> </hop> </order>
|
||||
<step>
|
||||
<name>Add constants</name>
|
||||
<type>Constant</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>type</name>
|
||||
<type>String</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>assets</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
<field>
|
||||
<name>product_active</name>
|
||||
<type>Boolean</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>Y</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
<field>
|
||||
<name>uom_symbol</name>
|
||||
<type>String</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>u</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
<field>
|
||||
<name>list_price</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>0</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
<field>
|
||||
<name>cost_price</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>0</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
<field>
|
||||
<name>company</name>
|
||||
<type>Integer</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>1</nullif>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>394</xloc>
|
||||
<yloc>222</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Code</name>
|
||||
<type>Sequence</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<valuename>code</valuename>
|
||||
<use_database>N</use_database>
|
||||
<connection/>
|
||||
<schema/>
|
||||
<seqname>SEQ_</seqname>
|
||||
<use_counter>Y</use_counter>
|
||||
<counter_name/>
|
||||
<start_at>1</start_at>
|
||||
<increment_by>1</increment_by>
|
||||
<max_value>999999999</max_value>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>926</xloc>
|
||||
<yloc>222</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Select values</name>
|
||||
<type>SelectValues</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields> <select_unspecified>N</select_unspecified>
|
||||
<remove> <name>create_uid</name>
|
||||
</remove> <remove> <name>write_uid</name>
|
||||
</remove> <remove> <name>code</name>
|
||||
</remove> <remove> <name>product_active</name>
|
||||
</remove> <remove> <name>product_id</name>
|
||||
</remove> <remove> <name>type</name>
|
||||
</remove> <remove> <name>uom</name>
|
||||
</remove> <remove> <name>uom_symbol</name>
|
||||
</remove> <remove> <name>template_id</name>
|
||||
</remove> <remove> <name>cost_price</name>
|
||||
</remove> <remove> <name>list_price</name>
|
||||
</remove> <remove> <name>company</name>
|
||||
</remove> <meta> <name>create_uid_target</name>
|
||||
<rename>create_uid</rename>
|
||||
<type>Integer</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta> <meta> <name>write_uid_target</name>
|
||||
<rename>write_uid</rename>
|
||||
<type>Integer</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta> </fields> <cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>220</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Table input</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>source</connection>
|
||||
<sql>SELECT * FROM vehicle_vehicle</sql>
|
||||
<limit>0</limit>
|
||||
<lookup/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<variables_active>N</variables_active>
|
||||
<lazy_conversion_active>N</lazy_conversion_active>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>138</xloc>
|
||||
<yloc>374</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Table output</name>
|
||||
<type>TableOutput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<schema/>
|
||||
<table>account_invoice</table>
|
||||
<commit>1000</commit>
|
||||
<truncate>N</truncate>
|
||||
<ignore_errors>N</ignore_errors>
|
||||
<use_batch>N</use_batch>
|
||||
<specify_fields>N</specify_fields>
|
||||
<partitioning_enabled>N</partitioning_enabled>
|
||||
<partitioning_field/>
|
||||
<partitioning_daily>N</partitioning_daily>
|
||||
<partitioning_monthly>Y</partitioning_monthly>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_field/>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<return_keys>N</return_keys>
|
||||
<return_field/>
|
||||
<fields>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>1189</xloc>
|
||||
<yloc>343</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Templates</name>
|
||||
<type>TableOutput</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<schema/>
|
||||
<table>product_template</table>
|
||||
<commit>1000</commit>
|
||||
<truncate>N</truncate>
|
||||
<ignore_errors>N</ignore_errors>
|
||||
<use_batch>N</use_batch>
|
||||
<specify_fields>Y</specify_fields>
|
||||
<partitioning_enabled>N</partitioning_enabled>
|
||||
<partitioning_field/>
|
||||
<partitioning_daily>N</partitioning_daily>
|
||||
<partitioning_monthly>Y</partitioning_monthly>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_field/>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<return_keys>N</return_keys>
|
||||
<return_field>template</return_field>
|
||||
<fields>
|
||||
<field>
|
||||
<column_name>id</column_name>
|
||||
<stream_name>template_id</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>name</column_name>
|
||||
<stream_name>name</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>active</column_name>
|
||||
<stream_name>product_active</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>type</column_name>
|
||||
<stream_name>type</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>default_uom</column_name>
|
||||
<stream_name>uom</stream_name>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>683</xloc>
|
||||
<yloc>222</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>assets</name>
|
||||
<type>TableOutput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<schema/>
|
||||
<table>asset</table>
|
||||
<commit>1000</commit>
|
||||
<truncate>N</truncate>
|
||||
<ignore_errors>N</ignore_errors>
|
||||
<use_batch>N</use_batch>
|
||||
<specify_fields>Y</specify_fields>
|
||||
<partitioning_enabled>N</partitioning_enabled>
|
||||
<partitioning_field/>
|
||||
<partitioning_daily>N</partitioning_daily>
|
||||
<partitioning_monthly>Y</partitioning_monthly>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_field/>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<return_keys>Y</return_keys>
|
||||
<return_field>asset</return_field>
|
||||
<fields>
|
||||
<field>
|
||||
<column_name>active</column_name>
|
||||
<stream_name>active</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>product</column_name>
|
||||
<stream_name>product_id</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>name</column_name>
|
||||
<stream_name>name</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>code</column_name>
|
||||
<stream_name>code</stream_name>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>996</xloc>
|
||||
<yloc>221</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>create_uid</name>
|
||||
<type>DBLookup</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>4</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<cache>Y</cache>
|
||||
<cache_load_all>Y</cache_load_all>
|
||||
<cache_size>0</cache_size>
|
||||
<lookup>
|
||||
<schema>migration</schema>
|
||||
<table>user_mapping</table>
|
||||
<orderby/>
|
||||
<fail_on_multiple>N</fail_on_multiple>
|
||||
<eat_row_on_failure>N</eat_row_on_failure>
|
||||
<key>
|
||||
<name>create_uid</name>
|
||||
<field>source</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>target</name>
|
||||
<rename>create_uid_target</rename>
|
||||
<default/>
|
||||
<type>Integer</type>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>227</xloc>
|
||||
<yloc>223</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>product sequence</name>
|
||||
<type>Sequence</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<valuename>product_id</valuename>
|
||||
<use_database>N</use_database>
|
||||
<connection/>
|
||||
<schema/>
|
||||
<seqname>SEQ_</seqname>
|
||||
<use_counter>Y</use_counter>
|
||||
<counter_name/>
|
||||
<start_at>50000</start_at>
|
||||
<increment_by>1</increment_by>
|
||||
<max_value>999999999</max_value>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>775</xloc>
|
||||
<yloc>221</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>products</name>
|
||||
<type>TableOutput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<schema/>
|
||||
<table>product_product</table>
|
||||
<commit>1000</commit>
|
||||
<truncate>N</truncate>
|
||||
<ignore_errors>N</ignore_errors>
|
||||
<use_batch>N</use_batch>
|
||||
<specify_fields>Y</specify_fields>
|
||||
<partitioning_enabled>N</partitioning_enabled>
|
||||
<partitioning_field/>
|
||||
<partitioning_daily>N</partitioning_daily>
|
||||
<partitioning_monthly>Y</partitioning_monthly>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_field/>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<return_keys>N</return_keys>
|
||||
<return_field>product</return_field>
|
||||
<fields>
|
||||
<field>
|
||||
<column_name>id</column_name>
|
||||
<stream_name>product_id</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>template</column_name>
|
||||
<stream_name>template_id</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>active</column_name>
|
||||
<stream_name>product_active</stream_name>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>861</xloc>
|
||||
<yloc>220</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>source</name>
|
||||
<type>Dummy</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>136</xloc>
|
||||
<yloc>224</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>target</name>
|
||||
<type>Dummy</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>1175</xloc>
|
||||
<yloc>216</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>template sequence</name>
|
||||
<type>Sequence</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<valuename>template_id</valuename>
|
||||
<use_database>N</use_database>
|
||||
<connection/>
|
||||
<schema/>
|
||||
<seqname>SEQ_</seqname>
|
||||
<use_counter>Y</use_counter>
|
||||
<counter_name/>
|
||||
<start_at>50000</start_at>
|
||||
<increment_by>1</increment_by>
|
||||
<max_value>999999999</max_value>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>587</xloc>
|
||||
<yloc>222</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>write_uid</name>
|
||||
<type>DBLookup</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>4</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<cache>Y</cache>
|
||||
<cache_load_all>Y</cache_load_all>
|
||||
<cache_size>0</cache_size>
|
||||
<lookup>
|
||||
<schema>migration</schema>
|
||||
<table>user_mapping</table>
|
||||
<orderby/>
|
||||
<fail_on_multiple>N</fail_on_multiple>
|
||||
<eat_row_on_failure>N</eat_row_on_failure>
|
||||
<key>
|
||||
<name>write_uid</name>
|
||||
<field>source</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>target</name>
|
||||
<rename>write_uid_target</rename>
|
||||
<default/>
|
||||
<type>Integer</type>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>319</xloc>
|
||||
<yloc>223</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>write_uid 2</name>
|
||||
<type>DBLookup</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>4</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<cache>Y</cache>
|
||||
<cache_load_all>N</cache_load_all>
|
||||
<cache_size>0</cache_size>
|
||||
<lookup>
|
||||
<schema/>
|
||||
<table>product_uom</table>
|
||||
<orderby/>
|
||||
<fail_on_multiple>N</fail_on_multiple>
|
||||
<eat_row_on_failure>N</eat_row_on_failure>
|
||||
<key>
|
||||
<name>uom_symbol</name>
|
||||
<field>symbol</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>id</name>
|
||||
<rename>uom</rename>
|
||||
<default/>
|
||||
<type>Integer</type>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>477</xloc>
|
||||
<yloc>221</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Row Normaliser</name>
|
||||
<type>Normaliser</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<typefield>field</typefield>
|
||||
<fields> <field> <name>list_price</name>
|
||||
<value>list_price</value>
|
||||
<norm>value</norm>
|
||||
</field> <field> <name>cost_price</name>
|
||||
<value>cost_price</value>
|
||||
<norm>value</norm>
|
||||
</field> </fields> <cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>686</xloc>
|
||||
<yloc>103</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>Stream lookup</name>
|
||||
<type>StreamLookup</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<from>fields</from>
|
||||
<input_sorted>N</input_sorted>
|
||||
<preserve_memory>Y</preserve_memory>
|
||||
<sorted_list>N</sorted_list>
|
||||
<integer_pair>N</integer_pair>
|
||||
<lookup>
|
||||
<key>
|
||||
<name>field</name>
|
||||
<field>name</field>
|
||||
</key>
|
||||
<value>
|
||||
<name>id</name>
|
||||
<rename>field_id</rename>
|
||||
<default/>
|
||||
<type>Integer</type>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>777</xloc>
|
||||
<yloc>105</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>fields</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<sql>select f.id,f.name
|
||||
from ir_model_field f
|
||||
join ir_model m on m.id = f.model
|
||||
where m.model = 'product.template' and f.name like '%_price'; </sql>
|
||||
<limit>0</limit>
|
||||
<lookup/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<variables_active>N</variables_active>
|
||||
<lazy_conversion_active>N</lazy_conversion_active>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>777</xloc>
|
||||
<yloc>29</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>prep</name>
|
||||
<type>ScriptValueMod</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<compatible>N</compatible>
|
||||
<optimizationLevel>9</optimizationLevel>
|
||||
<jsScripts> <jsScript> <jsScript_type>0</jsScript_type>
|
||||
<jsScript_name>Script 1</jsScript_name>
|
||||
<jsScript_script>//Script here
|
||||
var res = 'product.template,'+template_id;
|
||||
var value = ','+value;</jsScript_script>
|
||||
</jsScript> </jsScripts> <fields> <field> <name>res</name>
|
||||
<rename>res</rename>
|
||||
<type>String</type>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
<replace>N</replace>
|
||||
</field> <field> <name>value</name>
|
||||
<rename>value</rename>
|
||||
<type>String</type>
|
||||
<length>-1</length>
|
||||
<precision>-1</precision>
|
||||
<replace>Y</replace>
|
||||
</field> </fields> <cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>850</xloc>
|
||||
<yloc>100</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<name>property</name>
|
||||
<type>TableOutput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>target</connection>
|
||||
<schema/>
|
||||
<table>ir_property</table>
|
||||
<commit>1000</commit>
|
||||
<truncate>N</truncate>
|
||||
<ignore_errors>N</ignore_errors>
|
||||
<use_batch>N</use_batch>
|
||||
<specify_fields>Y</specify_fields>
|
||||
<partitioning_enabled>N</partitioning_enabled>
|
||||
<partitioning_field/>
|
||||
<partitioning_daily>N</partitioning_daily>
|
||||
<partitioning_monthly>Y</partitioning_monthly>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_field/>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<return_keys>Y</return_keys>
|
||||
<return_field>party</return_field>
|
||||
<fields>
|
||||
<field>
|
||||
<column_name>res</column_name>
|
||||
<stream_name>res</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>value</column_name>
|
||||
<stream_name>value</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>company</column_name>
|
||||
<stream_name>company</stream_name>
|
||||
</field>
|
||||
<field>
|
||||
<column_name>field</column_name>
|
||||
<stream_name>field_id</stream_name>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
||||
<xloc>941</xloc>
|
||||
<yloc>99</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
|
||||
<step_error_handling>
|
||||
</step_error_handling>
|
||||
<slave-step-copy-partition-distribution>
|
||||
</slave-step-copy-partition-distribution>
|
||||
<slave_transformation>N</slave_transformation>
|
||||
</transformation>
|
Loading…
Reference in New Issue