Need Liquibase® support? Liquibase Pro is now available! Try it out free.
2018 XML Announcement

dropAllDatabaseObjects Ant Task

Drops all database objects owned by the user. Note that functions, procedures and packages are not dropped (limitation in 1.8.1).

Parameters

Attribute Description Required
promptOnNonLocalDatabase If set to true a dialog box with warn you if you attempt to run the Liquibase against a database that is not on localhost No; default is false.
classpathref A reference to the classpath used to run the task with. No
databaseref A reference to the database that Liquibase will connect to. Yes, unless a nested <database> element is present.
driver Deprecated: Name of the database driver to connect with. No
url Deprecated: Use <database>'s url attribute instead. The database URL No
username Deprecated:The database username to connect with No
password Deprecated:The password to use when connecting to the database No
defaultSchemaName Deprecated:Schema to use by default for managed database objects and Liquibase control tables No
currentDateTimeFunction Deprecated: Overrides current date time function used in SQL. Useful for unsupported databases No
databaseChangeLogTableName Deprecated: Overrides the name of the databasechangelog table to use No
databaseChangeLogLockTableName Deprecated: Overrides the name of the databasechangeloglock table to use No
logLevel Deprecated: Specifies one of the following logging levels: debug, info, warning, severe, off. The default level is info. No

classpath

The classpath used to run the task with. Optional.

Database

Required unless a databaseref attribute is given. See database data type.

ChangeLogParameters

Optional. See change log parameters

Examples

<liquibase:dropAllDatabaseObjects>
    <liquibase:database driver="${db.driver}" url="${db.url}" user="${db.user}" password="${db.password}"/>
</liquibase:dropAllDatabaseObjects>

Missing, incomplete or wrong information? Please send a pull request