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

Cannot delete fields (M2O) #12225

Closed
3 tasks done
marco-land opened this issue Mar 18, 2022 · 1 comment
Closed
3 tasks done

Cannot delete fields (M2O) #12225

marco-land opened this issue Mar 18, 2022 · 1 comment

Comments

@marco-land
Copy link

Preflight Checklist

Describe the Bug

Created M2O fields cannot be deleted

To Reproduce

Create a Many-to-one field and save it, right after that try to delete it.

Errors Shown

{
  "errors": [
    {
      "message": "alter table `Places` drop `Test` - ER_DROP_INDEX_FK: Cannot drop index 'places_test_foreign': needed in a foreign key constraint",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

What version of Directus are you using?

9.6.0

What version of Node.js are you using?

12.22.7

What database are you using?

mySQL

What browser are you using?

Chrome

What operating system are you using?

macOS Monterey (12)

How are you deploying Directus?

running locally

@marco-land
Copy link
Author

duplicate #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

2 participants