Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm unable to delete image fields #12054

Closed
3 tasks done
gustavo-h-freitas opened this issue Mar 9, 2022 · 3 comments
Closed
3 tasks done

I'm unable to delete image fields #12054

gustavo-h-freitas opened this issue Mar 9, 2022 · 3 comments

Comments

@gustavo-h-freitas
Copy link

gustavo-h-freitas commented Mar 9, 2022

Preflight Checklist

Describe the Bug

Try creating a image field on directus, then try to delete it, it will drop this error message (allways)

{
  "errors": [
    {
      "message": "alter table `products_and_solutions_categories` drop `featured_image` - ER_FK_COLUMN_CANNOT_DROP: Cannot drop column 'featured_image': needed in a foreign key constraint 'products_and_solutions_categories_featured_image_foreign'",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

To Reproduce

Try creating a image field on directus, then try to delete it, it will drop this error message (allways)

Errors Shown

{
  "errors": [
    {
      "message": "alter table `products_and_solutions_categories` drop `featured_image` - ER_FK_COLUMN_CANNOT_DROP: Cannot drop column 'featured_image': needed in a foreign key constraint 'products_and_solutions_categories_featured_image_foreign'",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

What version of Directus are you using?

9.5.1

What version of Node.js are you using?

16.13.2

What database are you using?

sql

What browser are you using?

chrome

What operating system are you using?

Linux 4.14.252-195.483.amzn2.x86_64

How are you deploying Directus?

Docker

@rijkvanzanten
Copy link
Member

What database vendor are you using @roceroo?

@martijn-dev
Copy link

martijn-dev commented Mar 14, 2022

I think this issue is related to #11510. The issue exists since 9.5.1 and is still there in the newest 9.6 version.

@rijkvanzanten
Copy link
Member

Ah yeah good one. Duplicate of #11510

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants