Skip to content

Commit

Permalink
fix wrong type on sym_node and removed extra column from sym_trigger DML
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 7, 2007
1 parent 685c2eb commit 5ed6be9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions symmetric/src/main/deploy/samples/insert_sample.sql
@@ -1,11 +1,20 @@
------------------------------------------------------------------------------
-- Sample Data
------------------------------------------------------------------------------
insert into item_selling_price (price_id, price, cost) values (1, 0.10, 0.09);
insert into item (item_id, price_id, name) values (11000001, 1, 'Yummy Gum');

insert into sale_transaction (tran_id, store, workstation, day, seq)
insert into transaction (tran_id, store, workstation, day, seq)
values (900, '1', '3', '2007-11-01', 90);
insert into sale_return_line_item (tran_id, item_id, price, quantity)
values (900, 11000001, 0.10, 1);

------------------------------------------------------------------------------
-- Sample Symmetric Configuration
------------------------------------------------------------------------------
--
-- Nodes
--
insert into sym_node_group (node_group_id, description)
values ('corp', 'Central Office');
insert into sym_node_group (node_group_id, description)
Expand All @@ -17,9 +26,12 @@ insert into sym_node_group_link (source_node_group_id, target_node_group_id, dat
values ('corp', 'store', 'W');

insert into sym_node (node_id, node_group_id, external_id, sync_enabled, symmetric_version)
values ('00000', 'corp', '00000', '1', '1.1.0');
values ('00000', 'corp', '00000', 1, '1.1.0');
insert into sym_node_identity values ('00000');

--
-- Channels
--
insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('transaction', 1, 100000, 1, 'Transactional data from register and back office');
Expand All @@ -28,6 +40,9 @@ insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('item', 1, 100000, 1, 'Item and pricing data');

--
-- Triggers
--
insert into sym_trigger
(source_table_name, source_node_group_id, target_node_group_id, channel_id, sync_on_insert, sync_on_update, sync_on_delete, initial_load_order, last_updated_by, last_updated_time, create_time)
values('item_selling_price', 'corp', 'store', 'item', 1, 1, 1, 100, 'demo', current_timestamp, current_timestamp);
Expand All @@ -43,4 +58,3 @@ values('transaction', 'store', 'corp', 'transaction', 1, 1, 1, 200, 'demo', curr
insert into sym_trigger
(source_table_name, source_node_group_id, target_node_group_id, channel_id, sync_on_insert, sync_on_update, sync_on_delete, initial_load_order, last_updated_by, last_updated_time, create_time)
values('sale_return_line_item', 'store', 'corp', 'transaction', 1, 1, 1, 205, 'demo', current_timestamp, current_timestamp);

0 comments on commit 5ed6be9

Please sign in to comment.