Skip to content

v0.2.47..v0.2.48 changeset 028 AddJobStatusParent.xml

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-services/src/main/resources/db/changelogs/028-AddJobStatusParent.xml b/hoot-services/src/main/resources/db/changelogs/028-AddJobStatusParent.xml
new file mode 100644
index 0000000..723c06e
--- /dev/null
+++ b/hoot-services/src/main/resources/db/changelogs/028-AddJobStatusParent.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
+    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
+    http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
+    <changeSet author="bobby.simic" id="28" context="default">
+        <comment>
+            This change adds a parent id to job_status which will be the job id of the parent job
+        </comment>
+
+        <addColumn tableName="job_status">
+            <column name="parent_id" type="varchar(64)" defaultValue="">
+                <constraints nullable="false"/>
+            </column>
+        </addColumn>
+
+    </changeSet>
+</databaseChangeLog>
Clone this wiki locally