Error attempting to re-create databasechangeloglock on second liquibase run if running in Oracle under SYSTEM user

Description

Described in http://stackoverflow.com/questions/17748032/liquibase-error-on-system-databasechangeloglock-while-re-executing-a-migration

When running as SYSTEM, the following condition (DatabaseSnapshot#include) is evaluated to true.

if (database.isSystemObject(example)) {
return null;
}

Because of that, the creation will always be attempted.

Environment

Oracle under SYSTEM user

Reporter

Nathan Voxland

Fix versions

Affects versions

Priority

Major
Configure