Skip to content

#208 follow-up: @dependsOn for @sql views (undeclared-dependency ALTER) #216

Description

@dmealing

Deferred from #208 (ADR-0043 §Consequences). An @sql view's dependsOn is derived from extends-bound anchors + (for write-through) the host table only. A table the opaque body JOINs but neither hosts nor anchors is not tracked, so a column-altering ALTER on it isn't wrapped in drop/recreate → the migration can fail at apply. Add an explicit @dependsOn physical-table-list attr when an adopter hits this (YAGNI until then). Cross-port registration; TS-only lowering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions