summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/resources
diff options
context:
space:
mode:
authorJoseph Keenan <joseph.keenan@est.tech>2022-08-08 09:36:00 +0000
committerGerrit Code Review <gerrit@onap.org>2022-08-08 09:36:00 +0000
commit57ba6b73a739b3c6dbbe7c68c79359f443dfc33d (patch)
tree4029b212107fff8443ee59606a8bf74bc1e92c06 /cps-ri/src/main/resources
parentd6424a3122c5468501311df0a50cc400d5c72784 (diff)
parente038e5b3c33348fa691765220476bfe3acba955c (diff)
Merge "Rename name column in yang resource table"
Diffstat (limited to 'cps-ri/src/main/resources')
-rw-r--r--cps-ri/src/main/resources/changelog/changelog-master.yaml2
-rw-r--r--cps-ri/src/main/resources/changelog/db/changes/15-rename-column-yang-resource-table.yaml14
2 files changed, 16 insertions, 0 deletions
diff --git a/cps-ri/src/main/resources/changelog/changelog-master.yaml b/cps-ri/src/main/resources/changelog/changelog-master.yaml
index aa1b49d8b8..218e78b85c 100644
--- a/cps-ri/src/main/resources/changelog/changelog-master.yaml
+++ b/cps-ri/src/main/resources/changelog/changelog-master.yaml
@@ -44,3 +44,5 @@ databaseChangeLog:
file: changelog/db/changes/13-insert-dmi-registry-2022-02-10-schema-set.yaml
- include:
file: changelog/db/changes/14-loadData-dmi-registry-2022-05-10-schema-set.yaml
+ - include:
+ file: changelog/db/changes/15-rename-column-yang-resource-table.yaml \ No newline at end of file
diff --git a/cps-ri/src/main/resources/changelog/db/changes/15-rename-column-yang-resource-table.yaml b/cps-ri/src/main/resources/changelog/db/changes/15-rename-column-yang-resource-table.yaml
new file mode 100644
index 0000000000..71f11a5382
--- /dev/null
+++ b/cps-ri/src/main/resources/changelog/db/changes/15-rename-column-yang-resource-table.yaml
@@ -0,0 +1,14 @@
+databaseChangeLog:
+ - changeSet:
+ author: cps
+ label: yang-resource-rename-column
+ id: 15
+ changes:
+ - renameColumn:
+ tableName: yang_resource
+ columnDataType: TEXT
+ oldColumnName: name
+ newColumnName: file_name
+ rollback:
+ - sql:
+ sql: alter table yang_resource rename column file_name to name \ No newline at end of file