Skip to content

Conflicts with package laravel-adjacency-list #20

@es-ka

Description

@es-ka

Describe the bug
After installation via composer, it seems to break the package laravel-adjacency-list. Even without using the postgres-range package, I get an Illuminate\Database\QueryException:

SQLSTATE[42P01]: Undefined table: 7 ERROR: Relation »laravel_cte« doesn't exist

To Reproduce
Steps to reproduce the behavior:

  1. install staudenmeir/laravel-adjacency-list via composer
  2. use staudenmeir/laravel-adjacency-list on model 'X'
  3. install belamov/postges-range
  4. run database migration
  5. define a cast for datarange column in model 'Y'
  6. access a laravel route where model 'X' is involved
  7. see error above

Expected behavior
Installation of postgres-range should not affect another package

Additional context
I guess it might be related to hints on postgres grammar, but unfortunately I'm not familiar with CTE and don't know how to deal with it.

Any help and advice is very appreciated. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions