hasura / hasura/graphql-engine
Server: parent_id not dropped although relationship does not exist
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Version Information
Server Version: 2.9.0
CLI Version (for CLI related issue): 2.9.0
### Environment
ubuntu 22.04.
### What is the current behaviour?
Attempting to drop column "segmentation_markup_id" from table "datapoint_markups" shows relationship error, although no relationship is present. The relationship existed before but was deleted.


### What is the expected behaviour?
Drop the column without any error since no relationship is defined.
### How to reproduce the issue?
1. add foreign key relationship between two tables
2. remove foreign key, remove relationship
3. try to drop parent_id column
### Screenshots or Screencast
Contributor guide
Research direction
No source file or test is named. Start by following the reproduction steps on the server with the relationship metadata: create the foreign key, remove it, and retry dropping the column. Done means the previously removed relationship is not reported and the column can be dropped without an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100