Add NotNull DB Constraint to operation field 67/126467/1
authorRenu Kumari <renu.kumari@bell.ca>
Wed, 5 Jan 2022 12:17:42 +0000 (07:17 -0500)
committerRenu Kumari <renu.kumari@bell.ca>
Wed, 5 Jan 2022 12:20:23 +0000 (07:20 -0500)
Issue-ID: CPS-826
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I55d8d4fb9000ecf7a84b1b4aa7ec41e95420543c

src/main/resources/db/changelog/schema/04-added-operation-field-in-network-data.xml

index 62b93b9..88b3f92 100644 (file)
@@ -48,4 +48,8 @@
         <comment>Remove not null constraint from payload to support delete operation</comment>
         <dropNotNullConstraint tableName="network_data" columnName="payload"/>
     </changeSet>
+    <changeSet id="4.3" author="cps">
+        <comment>Added not null constraint to operation field</comment>
+        <addNotNullConstraint tableName="network_data" columnName="operation"/>
+    </changeSet>
 </databaseChangeLog>