blob: 65b3a48ca5ea812e31065e796667771320844bc5 [file] [log] [blame]
niamhcorea1c6e6a2021-10-21 15:19:04 +01001/*
2 ============LICENSE_START=======================================================
DylanB95ESTe038e5b2022-08-04 18:07:24 +01003 Copyright (C) 2021-2022 Nordix Foundation.
niamhcorea1c6e6a2021-10-21 15:19:04 +01004 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
19*/
20
21INSERT INTO DATASPACE (ID, NAME) VALUES
niamhcore68041572021-11-08 14:27:18 +000022 (1001, 'dataspace-1'), (1002, 'dataspace-2');
niamhcorea1c6e6a2021-10-21 15:19:04 +010023
24INSERT INTO SCHEMA_SET (ID, NAME, DATASPACE_ID) VALUES
niamhcore68041572021-11-08 14:27:18 +000025 (2001, 'schema-set-1', 1001),
26 (2002, 'schema-set-2', 1001),
27 (2003, 'schema-set-3', 1001),
28 (2004, 'schema-set-4', 1002);
niamhcorea1c6e6a2021-10-21 15:19:04 +010029
DylanB95ESTe038e5b2022-08-04 18:07:24 +010030INSERT INTO YANG_RESOURCE (ID, FILE_NAME, CONTENT, CHECKSUM, MODULE_NAME, REVISION) VALUES
niamhcore68041572021-11-08 14:27:18 +000031 (3001, 'module1@revA.yang', 'some-content', 'checksum1','module-name-1','revA'),
32 (3002, 'module2@revA.yang', 'some-content', 'checksum2','module-name-2','revA'),
33 (3003, 'module2@revB.yang', 'some-content', 'checksum3','module-name-2','revB'),
34 (3004, 'module3@revA.yang', 'some-content', 'checksum4','module-name-3','revA');
niamhcorea1c6e6a2021-10-21 15:19:04 +010035
36INSERT INTO SCHEMA_SET_YANG_RESOURCES (SCHEMA_SET_ID, YANG_RESOURCE_ID) VALUES
niamhcore68041572021-11-08 14:27:18 +000037 (2001, 3001), --schema-set-1(anchor-1) has modules module1@revA, module2@revA
38 (2001, 3002),
39 (2002, 3001), --schema-set-2(anchor-2) has modules module1@revA, module2@revB
40 (2002, 3003),
41 (2003, 3002), --schema-set-3(anchor-3) has modules module2@revA, module2@revB
42 (2003, 3003),
43 (2004, 3001); --schema-set-4(anchor-4) has module module1@revA but in other dataspace
niamhcorea1c6e6a2021-10-21 15:19:04 +010044
45INSERT INTO ANCHOR (ID, NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES
niamhcore68041572021-11-08 14:27:18 +000046 (6001, 'anchor-1', 1001, 2001),
47 (6002, 'anchor-2', 1001, 2002),
48 (6003, 'anchor-3', 1001, 2003),
49 (6005, 'anchor-4', 1002, 2004);