On Sun, 13 Mar 2016 15:02:11 -0400
"Bryan C. Everly" <br...@bceassociates.com> wrote:

> Adam,
> 
> I created a simple database in PostgreSQL called "foo" and used the
> attached script and change log to add a new table to it.
> 
> You will need to install PostgreSQL and it's JDBC driver.
> 
> Please let me know if this works for you!
> 
> 
> Thanks,
> Bryan
> 

Thanks for the example, it saved a lot of time and frustration.

The port works as expected:
$ sh migrate.sh  
Liquibase Update Successful

mulander=# \dt
 public | databasechangelog     | table | mulander
 public | databasechangeloglock | table | mulander
 public | department            | table | mulander

mulander=# \dt+
 public | databasechangelog     | table | mulander | 16 kB      | 
 public | databasechangeloglock | table | mulander | 8192 bytes | 
 public | department            | table | mulander | 0 bytes    | 

mulander=# \d department
 id     | integer               | not null
 name   | character varying(50) | not null
 active | boolean               | default true


On Sun, 13 Mar 2016 15:30:07 -0400
Ian Darwin <i...@darwinsys.com> wrote:

> In theory,  Java apps can ask for any JDBC driver at any time, and
> the onus is on the user to ensure the driver is on the CLASSPATH.
> 
> Since we don't know in advance which driver a user wants to use 
> liquibase with, it might make sense to brew up a small batch of ports 
> for the various drivers (half a dozen or so common ones) and have
> ports like this just depend on all of them (none of the drivers is 
> partic

I do agree with Ian that a set of ports for the popular jdbc
drivers would be really nice. It seems that currently we only ship a
postgresql jdbc driver?

Regarding your port Bryan, I would gladly OK it if you could add a
pkg-readme informing that additional drivers need to be installed per
database and maybe a simple call example like the one you contained in
migrate.sh in your previous email.

Additionally the official documentation for liquibase states:
 "To use JSON-based changelogs, you must include snakeyaml-1.12.jar in
your classpath."

We don't have a package for that and I assume there are more parts to
this software that might require additional ports (or are there
shipped with the upstream jar?)?

Are you willing to package them up?

Regards,
Adam


Reply via email to