code: public static boolean geometryColumnsExists(final Database database) {
        String geometryColumnsName = database.correctObjectName(
              "geometry_columns", Table.class);
        DatabaseObject example = null;
        if (database instanceof DerbyDatabase || database instanceof H2Database) {
           final Table tableExample = new Table();
           tableExample.setName(geometryColumnsName);
           tableExample.setSchema(database.getDefaultCatalogName(),
                 database.getDefaultSchemaName());
           example = tableExample;
        } else if (database instanceof PostgresDatabase) {
           final View viewExample = new View();
           viewExample.setName(geometryColumnsName);
           viewExample.setSchema(database.getDefaultCatalogName(), "public");
           example = viewExample;
        }
        try {
           return example != null
                 && SnapshotGeneratorFactory.getInstance().has(example, database);
        } catch (final LiquibaseException e) {
           throw new UnexpectedLiquibaseException(
                 "Failed to determine if the geometry_columns table or view exists",
                 e);
        }
     }
docs: Indicates if the <code>GEOMETRY_COLUMNS</code> table or view exists.
  
  @param database
  the database to check.
  @return <code>true</code> if the table or view exists.