From 60f41161ac9589dfaf0000587f216cae0e734142 Mon Sep 17 00:00:00 2001 From: Renu Kumari Date: Wed, 8 Dec 2021 11:16:58 -0500 Subject: Add support for delete operation - Added new column operation in DB - Updated existing rows to have 'UPDATE' value for operation field - Added ability to process both V1 and V2 event schema - Changed code and testcase to support operation field Issue-ID: CPS-790 Signed-off-by: Renu Kumari Change-Id: Ife24daa4b442e1499094b162727cc8704c25011e --- .../resources/db/changelog/changelog-master.xml | 2 +- .../04-added-operation-field-in-network-data.xml | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/changelog/schema/04-added-operation-field-in-network-data.xml (limited to 'src/main/resources') diff --git a/src/main/resources/db/changelog/changelog-master.xml b/src/main/resources/db/changelog/changelog-master.xml index 6ec36fb..7986d5e 100644 --- a/src/main/resources/db/changelog/changelog-master.xml +++ b/src/main/resources/db/changelog/changelog-master.xml @@ -26,5 +26,5 @@ - + diff --git a/src/main/resources/db/changelog/schema/04-added-operation-field-in-network-data.xml b/src/main/resources/db/changelog/schema/04-added-operation-field-in-network-data.xml new file mode 100644 index 0000000..62b93b9 --- /dev/null +++ b/src/main/resources/db/changelog/schema/04-added-operation-field-in-network-data.xml @@ -0,0 +1,51 @@ + + + + + + + Add operation field in network data timescale table + and set default 'UPDATE' value for existing data + + + + + + + + operation is NULL + + + + + + + + + Remove not null constraint from payload to support delete operation + + + -- cgit 1.2.3-korg