Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0001678: Make trigger id column size larger
  • Loading branch information
chenson42 committed Apr 23, 2014
1 parent b423b0a commit fbca28f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions symmetric-core/src/main/resources/symmetric-schema.xml
Expand Up @@ -118,7 +118,7 @@
<column name="status" type="CHAR" size="2" description="NE, OK" />
<column name="start_batch_id" type="BIGINT" required="true" description="A load can be split across multiple batches. This is the first of N batches the load will be split across." />
<column name="end_batch_id" type="BIGINT" required="true" description="This is the last of N batches the load will be split across." />
<column name="trigger_id" type="VARCHAR" size="50" required="true" description="Unique identifier for a trigger associated with the extract request." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" description="Unique identifier for a trigger associated with the extract request." />
<column name="router_id" type="VARCHAR" size="50" required="true" description="Unique description of the router associated with the extract request." />
<column name="last_update_time" type="TIMESTAMP" description="Timestamp when a process last updated this entry." />
<column name="create_time" type="TIMESTAMP" description="Timestamp when this entry was created." />
Expand All @@ -133,7 +133,7 @@
</table>

<table name="file_snapshot" description="Table used to capture file changes. Updates to the table are captured and routed according to the configured file trigger routers.">
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of the trigger that caused this snapshot to be taken." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="The id of the trigger that caused this snapshot to be taken." />
<column name="router_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of the router that caused this snapshot to be taken." />
<column name="relative_dir" type="VARCHAR" size="255" required="true" primaryKey="true" description="The path to the file starting at the base_dir" />
<column name="file_name" type="VARCHAR" size="128" required="true" primaryKey="true" description="The name of the file that changed." />
Expand All @@ -152,7 +152,7 @@
</table>

<table name="file_trigger" description="This table defines files or sets of files for which changes will be captured for file synchronization">
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for a trigger." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="Unique identifier for a trigger." />
<column name="channel_id" type="VARCHAR" size="20" required="true" default="filesync" description="The channel_id of the channel that data changes will flow through." />
<column name="reload_channel_id" type="VARCHAR" size="20" required="true" default="filesync_reload" description="The channel_id of the channel that will be used for reloads." />
<column name="base_dir" type="VARCHAR" size="255" required="true" description="The base directory on the client that will be synchronized." />
Expand All @@ -172,7 +172,7 @@
</table>

<table name="file_trigger_router" description="Maps a file trigger to a router.">
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a file trigger." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="The id of a file trigger." />
<column name="router_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a router." />
<column name="enabled" type="BOOLEANINT" size="1" required="true" default="1" description="Indicates whether this file trigger router is enabled or not."/>
<column name="initial_load_enabled" type="BOOLEANINT" size="1" required="true" default="1" description="Indicates whether this file trigger should be initial loaded."/>
Expand Down Expand Up @@ -617,7 +617,7 @@
<table name="table_reload_request" description="This table acts as a means to queue up a reload of a specific table. Either the target or the source node may insert into this table to queue up a load. If the target node inserts into the table, then the row will be synchronized to the source node and the reload events will be queued up during routing.">
<column name="target_node_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for the node to receive the table reload." />
<column name="source_node_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for the node that will be the source of the table reload." />
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for a trigger associated with the table reload. Note the trigger must be linked to the router." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="Unique identifier for a trigger associated with the table reload. Note the trigger must be linked to the router." />
<column name="router_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique description of the router associated with the table reload. Note the router must be linked to the trigger." />
<column name="reload_select" type="LONGVARCHAR" description="Overrides the initial load select." />
<column name="reload_delete_stmt" type="LONGVARCHAR" description="Overrides the initial load delete statement." />
Expand Down Expand Up @@ -667,7 +667,7 @@
</table>

<table name="trigger" description="Configures database triggers that capture changes in the database. Configuration of which triggers are generated for which tables is stored here. Triggers are created in a node's database if the source_node_group_id of a router is mapped to a row in this table.">
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for a trigger." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="Unique identifier for a trigger." />
<column name="source_catalog_name" type="VARCHAR" size="255" description="Optional name for the catalog the configured table is in." />
<column name="source_schema_name" type="VARCHAR" size="255" description="Optional name for the schema a configured table is in." />
<column name="source_table_name" type="VARCHAR" size="255" required="true" description="The name of the source table that will have a trigger installed to watch for data changes." />
Expand Down Expand Up @@ -708,7 +708,7 @@

<table name="trigger_hist" description="A history of a table's definition and the trigger used to capture data from the table. When a database trigger captures a data change, it references a trigger_hist entry so it is possible to know which columns the data represents. trigger_hist entries are made during the sync trigger process, which runs at each startup, each night in the syncTriggersJob, or any time the syncTriggers() JMX method is manually invoked. A new entry is made when a table definition or a trigger definition is changed, which causes a database trigger to be created or rebuilt.">
<column name="trigger_hist_id" type="INTEGER" required="true" primaryKey="true" autoIncrement="true" description="Unique identifier for a trigger_hist entry" />
<column name="trigger_id" type="VARCHAR" size="50" required="true" description="Unique identifier for a trigger" />
<column name="trigger_id" type="VARCHAR" size="128" required="true" description="Unique identifier for a trigger" />
<column name="source_table_name" type="VARCHAR" size="255" required="true" description="The name of the source table that will have a trigger installed to watch for data changes." />
<column name="source_catalog_name" type="VARCHAR" size="255" description="The catalog name where the source table resides." />
<column name="source_schema_name" type="VARCHAR" size="255" description="The schema name where the source table resides." />
Expand All @@ -727,7 +727,7 @@
</table>

<table name="trigger_router" description="Map a trigger to a router.">
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a trigger." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="The id of a trigger." />
<column name="router_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a router." />
<column name="enabled" type="BOOLEANINT" size="1" required="true" default="1" description="Indicates whether this trigger router is enabled or not."/>
<column name="initial_load_order" type="INTEGER" required="true" default="1" description="Order sequence of this table when an initial load is sent to a node. If this value is the same for multiple tables, then SymmetricDS will attempt to order the tables according to FK constraints. If this value is set to a negative number, then the table will be excluded from an initial load." />
Expand All @@ -748,7 +748,7 @@

<table name="trigger_router_grouplet" description="This tables defines what grouplets are associated with what trigger routers. The existence of the grouplet for a trigger_router enables nodes associated with the grouplet and at the same time it disables the trigger router for all other nodes.">
<column name="grouplet_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="Unique identifier for the grouplet." />
<column name="trigger_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a trigger." />
<column name="trigger_id" type="VARCHAR" size="128" required="true" primaryKey="true" description="The id of a trigger." />
<column name="router_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The id of a router." />
<column name="applies_when" type="CHAR" size="1" required="true" primaryKey="true" description="Indicates the side that a grouplet should be applied to. Use 'T' for target and 'S' for source and 'B' for both source and target." />
<column name="create_time" type="TIMESTAMP" required="true" description="Timestamp when this entry was created." />
Expand Down

0 comments on commit fbca28f

Please sign in to comment.