niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | ============LICENSE_START======================================================= |
DylanB95EST | e038e5b | 2022-08-04 18:07:24 +0100 | [diff] [blame^] | 3 | Copyright (C) 2021-2022 Nordix Foundation. |
niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 4 | ================================================================================ |
| 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 | |
| 21 | INSERT INTO DATASPACE (ID, NAME) VALUES |
niamhcore | 6804157 | 2021-11-08 14:27:18 +0000 | [diff] [blame] | 22 | (1001, 'dataspace-1'), (1002, 'dataspace-2'); |
niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 23 | |
| 24 | INSERT INTO SCHEMA_SET (ID, NAME, DATASPACE_ID) VALUES |
niamhcore | 6804157 | 2021-11-08 14:27:18 +0000 | [diff] [blame] | 25 | (2001, 'schema-set-1', 1001), |
| 26 | (2002, 'schema-set-2', 1001), |
| 27 | (2003, 'schema-set-3', 1001), |
| 28 | (2004, 'schema-set-4', 1002); |
niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 29 | |
DylanB95EST | e038e5b | 2022-08-04 18:07:24 +0100 | [diff] [blame^] | 30 | INSERT INTO YANG_RESOURCE (ID, FILE_NAME, CONTENT, CHECKSUM, MODULE_NAME, REVISION) VALUES |
niamhcore | 6804157 | 2021-11-08 14:27:18 +0000 | [diff] [blame] | 31 | (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'); |
niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 35 | |
| 36 | INSERT INTO SCHEMA_SET_YANG_RESOURCES (SCHEMA_SET_ID, YANG_RESOURCE_ID) VALUES |
niamhcore | 6804157 | 2021-11-08 14:27:18 +0000 | [diff] [blame] | 37 | (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 |
niamhcore | a1c6e6a | 2021-10-21 15:19:04 +0100 | [diff] [blame] | 44 | |
| 45 | INSERT INTO ANCHOR (ID, NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES |
niamhcore | 6804157 | 2021-11-08 14:27:18 +0000 | [diff] [blame] | 46 | (6001, 'anchor-1', 1001, 2001), |
| 47 | (6002, 'anchor-2', 1001, 2002), |
| 48 | (6003, 'anchor-3', 1001, 2003), |
| 49 | (6005, 'anchor-4', 1002, 2004); |