Skip to content

Commit

Permalink
Fixes opencadc#231
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Sep 21, 2023
1 parent 68568d9 commit 38ab73c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadc-util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourceCompatibility = 1.8

group = 'org.opencadc'

version = '1.9.11'
version = '1.9.12'

description = 'OpenCADC core utility library'
def git_url = 'https://github.com/opencadc/core'
Expand Down
12 changes: 11 additions & 1 deletion cadc-util/src/main/java/ca/nrc/cadc/db/version/InitDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ public List<String> parseDDL(String fname, String schema, String tag) throws IOE
if (tag != null) {
st = st.replace("<tag>", tag);
}
st = finalizeDDL(st);

log.debug("statement: " + st);
ret.add(st);
Expand All @@ -470,4 +471,13 @@ public List<String> parseDDL(String fname, String schema, String tag) throws IOE
return ret;
}

}
/**
* Allow implementors to customize parameters or further processing of the DDL. Leave empty if none desired.
*
* @param ddlDocument The DDL String AFTER <code><schema></code> and <code><tag></code> are processed.
* @return The processed DDL.
*/
public String finalizeDDL(final String ddlDocument) {
return ddlDocument;
}
}

0 comments on commit 38ab73c

Please sign in to comment.