Skip to content

Custom column names for closure tree table  #7068

@alexey2baranov

Description

@alexey2baranov

Custom column names for closure tree table

The Problem

Currently @Tree("closure-table") creates table with fixed name and columns entity_closure, id_ancestor, id_descendant. There is no possibility to customize this naming. This not works with legacy database schema.

The Solution

Append @Tree("closure-table") with additional options closureTableName, ancestorColumnName, descendantColumnName

Relevant Database Driver(s)

  • [ +] postgres

Are you willing to resolve this issue by submitting a Pull Request?

  • [+ ] Yes, I have the time, but I don't know how to start. I would need guidance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions