diff options
author | 2021-01-11 16:44:32 +0200 | |
---|---|---|
committer | 2021-01-13 10:18:31 +0000 | |
commit | 49fe075361e4f0f3b2a1a561bc01f831983a3efb (patch) | |
tree | a4cd3e36428f0d3d922e01c22700344088dd4bd2 /cps-ri/src/test/resources/data | |
parent | a6c59f024092ac339d851a372aa6deae36de622d (diff) |
Decouple anchor from fragment in persistence module
Issue-ID: CPS-161
Change-Id: Ia446b26ee4eca9281e86bd2be3dd6836aa201597
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-ri/src/test/resources/data')
-rw-r--r-- | cps-ri/src/test/resources/data/anchor.sql | 6 | ||||
-rw-r--r-- | cps-ri/src/test/resources/data/clear-all.sql | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/cps-ri/src/test/resources/data/anchor.sql b/cps-ri/src/test/resources/data/anchor.sql index 55075596b..1d9b4b1ec 100644 --- a/cps-ri/src/test/resources/data/anchor.sql +++ b/cps-ri/src/test/resources/data/anchor.sql @@ -4,6 +4,6 @@ INSERT INTO DATASPACE (ID, NAME) VALUES INSERT INTO SCHEMA_SET (ID, NAME, DATASPACE_ID) VALUES (2001, 'SCHEMA-SET-001', 1001), (2002, 'SCHEMA-SET-002', 1001); -INSERT INTO FRAGMENT (ID, XPATH, ANCHOR_NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES - (3001, 'ANCHOR-001', 'ANCHOR-001', 1001, 2001), - (3002, 'ANCHOR-002', 'ANCHOR-002', 1001, 2002);
\ No newline at end of file +INSERT INTO ANCHOR (ID, NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES + (3001, 'ANCHOR-001', 1001, 2001), + (3002, 'ANCHOR-002', 1001, 2002);
\ No newline at end of file diff --git a/cps-ri/src/test/resources/data/clear-all.sql b/cps-ri/src/test/resources/data/clear-all.sql index 522f9e617..9aee604a3 100644 --- a/cps-ri/src/test/resources/data/clear-all.sql +++ b/cps-ri/src/test/resources/data/clear-all.sql @@ -1,6 +1,7 @@ DELETE FROM FRAGMENT; --- clear all via dataspace table cleanup --- all other data will be removed by cascade +DELETE FROM ANCHOR; DELETE FROM DATASPACE; --- explicit clear +-- following tables are cleared by CASCADE constraint: +-- SCHEMA_SET +-- SCHEMA_SET_YANG_RESOURCES DELETE FROM YANG_RESOURCE; |