-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add liquibase migration, fix remaining repository queries and smaller…
… improvements.
- Loading branch information
Showing
13 changed files
with
91 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,4 @@ public boolean equals(Object o) { | |
public int hashCode() { | ||
return Objects.hash(fileName, label, doc); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?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:pro="http://www.liquibase.org/xml/ns/pro" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd | ||
http://www.liquibase.org/xml/ns/pro | ||
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd"> | ||
<includeAll path="db/changelog/migrations/"/> | ||
</databaseChangeLog> | ||
|
42 changes: 42 additions & 0 deletions
42
src/main/resources/db/changelog/migrations/00001_schema_ddl.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--liquibase formatted sql | ||
|
||
--changeset kinow:create-workflow-table | ||
create table if not exists workflow | ||
( | ||
id varchar(36) not null | ||
primary key, | ||
cwltool_version text, | ||
doc text, | ||
docker_link text, | ||
inputs jsonb, | ||
label text, | ||
last_commit text, | ||
license_link text, | ||
outputs jsonb, | ||
retrieved_from jsonb | ||
constraint unique_workflow_retrieved_from | ||
unique, | ||
retrieved_on timestamp, | ||
ro_bundle_path text, | ||
steps jsonb, | ||
visualisation_dot text | ||
); | ||
--rollback drop table workflow; | ||
|
||
--changeset kinow:create-idx_workflow_retrieved_on-index | ||
create index if not exists idx_workflow_retrieved_on | ||
on workflow (retrieved_on); | ||
--rollback drop index idx_workflow_retrieved_on; | ||
|
||
--changeset kinow:create-queued_workflow-table | ||
create table if not exists queued_workflow | ||
( | ||
id varchar(36) not null | ||
primary key, | ||
cwltool_status jsonb, | ||
cwltool_version text, | ||
message text, | ||
temp_representation jsonb, | ||
workflow_list jsonb | ||
); | ||
--rollback drop table queued_workflow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
</logger> | ||
--> | ||
|
||
</configuration> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters