2009/3/8 Jaco van Tonder <[email protected]>:
> Hello guys,
>
> Can anyone please give me a (working) example of spring liquibase integration
> ? Which properties are available, the proper naming of the properties,
> caveats, etc. The wiki is a bit skimpy on docs with regards to spring
> integration. ;)
>
> Any working examples would be nice.
>
> Thanks on advance.
> ---Jaco
>
Here you are:
<bean id="liquibase" class="liquibase.spring.SpringLiquibase">
<property name="dataSource" ref="dataSource" />
<property name="changeLog"
value="classpath:com/myapp/db/updater/changelog.xml" />
</bean>
and my changelog.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<include file="com/myapp/db/updater/init/1-tables.xml" />
<include file="com/myapp/db/updater/init/2-uk_constraints.xml" />
<include file="com/myapp/db/updater/init/3-fk_constraints.xml" />
<include file="com/myapp/db/updater/init/4-check_constraints.xml" />
<include file="com/myapp/db/updater/init/5-indexes.xml" />
<include file="com/myapp/db/updater/init/6-functions.xml" />
<include file="com/myapp/db/updater/change-0002.xml" />
<include file="com/myapp/db/updater/change-0003.xml" />
<include file="com/myapp/db/updater/change-0004.xml" />
...
</databaseChangeLog>
--
Damian
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user