Skip to content

Commit

Permalink
file sync table definition
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 20, 2012
1 parent b05eb68 commit 6cc860c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions symmetric-core/src/main/resources/symmetric-schema.xml
Expand Up @@ -561,5 +561,38 @@
<column name="load_filter_order" type="INTEGER" required="true" default="1" description="Specifies the order in which to apply load filters if more than one target operation occurs."/>
<column name="fail_on_error" type="BOOLEANINT" size="1" required="true" default="0" description="Whether we should fail the batch if the filter fails." />
</table>

<table name="file_sync" description="A table that defines file synchronization configuration">
<column name="file_sync_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of the synchronization." />
<column name="server_group_id" type="VARCHAR" size="50" required="true" description="The node group that will act as the client during file synchronization." />
<column name="client_group_id" type="VARCHAR" size="50" required="true" description="The node group that will act as the server during file synchronization." />
<column name="processing_order" type="INTEGER" required="true" default="1" description="Order in which to process the synchronizations."/>
<column name="frequency" type="VARCHAR" size="50" required="true" description="This is a cron expression or the period in between synchronizations in milliseconds." />
<column name="client_dir" type="VARCHAR" size="255" required="true" description="The base directory on the client that will be synchronized." />
<column name="server_dir" type="VARCHAR" size="255" required="true" description="The base directory on the server that will be synchronized." />
<column name="recursive" type="BOOLEANINT" size="1" required="true" default="1" description="Whether to synchronize child directories." />
<column name="includes_files" type="VARCHAR" size="255" description="Wildcard enabled comma separtated list of file to include in synchronization." />
<column name="excludes_files" type="VARCHAR" size="255" description="Wildcard enabled comma separtated list of file to exclude from synchronization." />
<column name="direction" type="VARCHAR" size="50" required="true" default="bidirectional" description="The direction to synchronize files. Possible values are: client_to_server, server_to_client, bidirectional." />
<column name="sync_on_create" type="BOOLEANINT" size="1" required="true" default="1" description="Whether to capture and send files when the are created." />
<column name="sync_on_modified" type="BOOLEANINT" size="1" required="true" default="1" description="Whether to capture and send files when the are modified." />
<column name="sync_on_delete" type="BOOLEANINT" size="1" required="true" default="1" description="Whether to capture and send files when the are deleted." />
<column name="transport_type" type="VARCHAR" size="50" description="The name of a specific type of transport that will be used by the client. Out of the box types are: local, http, ftp, symmetric" />
<column name="transport_expression" type="LONGVARCHAR" description="An expression that is specific to the type of transport that is configured in transport_type See the documentation for each transport_type for more details." />
<column name="conflict_strategy" type="VARCHAR" size="128" default="client_wins" required="true" description="The strategy to employ when a file has been modified at both the client and the server. Possible values are: client_wins, server_wins, report_error" />
<column name="create_time" type="TIMESTAMP" description="Timestamp when this entry was created." />
<column name="last_update_by" type="VARCHAR" size="50" description="The user who last updated this entry." />
<column name="last_update_time" type="TIMESTAMP" required="true" description="Timestamp when a user last updated this entry." />
<!--
compress_for_xfer
package_files
conflict_strategy
script_type
client_pre_sync_script
client_post_sync_script
server_pre_sync_script
server_post_sync_script
-->
</table>

</database>

0 comments on commit 6cc860c

Please sign in to comment.