Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Using includeObjects/excludeObjects with generateChangeLog

$
0
0

It appears that it only works for diff and diffChangeLog, not got generateChangeLog.

Here is a chunk of the source code for the command line (see https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L299-L329 to see it in context)
  1. } else if ("diff".equalsIgnoreCase(command)
  2.         || "diffChangeLog".equalsIgnoreCase(command)) {
  3.     if (commandParams.size() > 0) {
  4.         for (String cmdParm : commandParams) {
  5.             if (!cmdParm.startsWith("--referenceUsername")
  6.                     && !cmdParm.startsWith("--referencePassword")
  7.                     && !cmdParm.startsWith("--referenceDriver")
  8.                     && !cmdParm.startsWith("--referenceDefaultCatalogName")
  9.                     && !cmdParm.startsWith("--referenceDefaultSchemaName")
  10.                     && !cmdParm.startsWith("--includeSchema")
  11.                     && !cmdParm.startsWith("--includeCatalog")
  12.                     && !cmdParm.startsWith("--includeTablespace")
  13.                     && !cmdParm.startsWith("--schemas")
  14.                     && !cmdParm.startsWith("--outputSchemasAs")
  15.                     && !cmdParm.startsWith("--referenceSchemas")
  16.                     && !cmdParm.startsWith("--referenceUrl")
  17.                     && !cmdParm.startsWith("--excludeObjects")
  18.                     && !cmdParm.startsWith("--includeObjects")
  19.                     && !cmdParm.startsWith("--diffTypes")) {
  20.                 messages.add("unexpected command parameter: " + cmdParm);
  21.             }
  22.         }
  23.     } else if ("snapshot".equalsIgnoreCase(command)
  24.             || "generateChangeLog".equalsIgnoreCase(command)) {
  25.         if (commandParams.size() > 0) {
  26.             for (String cmdParm : commandParams) {
  27.                 if (!cmdParm.startsWith("--includeSchema")
  28.                         && !cmdParm.startsWith("--includeCatalog")
  29.                         && !cmdParm.startsWith("--includeTablespace")
  30.                         && !cmdParm.startsWith("--schemas")) {
  31.                     messages.add("unexpected command parameter: " + cmdParm);
  32.                 }
  33.             }
  34.         }
  35.     }

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>