Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <if>
- <not>
- <dbexists dsn="mysql:host=${database.host}" username="${database.username}" password="${database.password}" database="${database.name}"/>
- </not>
- <then>
- <pdosqlexec url="mysql:host=${database.host}" userid="${database.username}" password="${database.password}">
- CREATE DATABASE ${database.name};
- </pdosqlexec>
- <pdosqlexec url="mysql:host=${database.host};dbname=${database.name}" userid="${database.username}" password="${database.password}">
- <transaction src="create-database-schema.sql"/>
- </pdosqlexec>
- </then>
- </if>
Add Comment
Please, Sign In to add comment