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

Broken rc.94->rc.95 migration with directus_fields/directus_fields_group_foreign #8376

Closed
3 tasks done
flayks opened this issue Sep 28, 2021 · 1 comment
Closed
3 tasks done

Comments

@flayks
Copy link

flayks commented Sep 28, 2021

Preflight Checklist

Describe the Bug

I get this error when trying to migrate to rc.95 from rc.94:

> npx directus database migrate:latest
11:55:29 ✨ Running migrations...
11:55:29 ✨ Applying Add Auth Provider...
11:55:30 ✨ Applying Webhooks URL Not Null...
11:55:30 ✨ Applying Replace Fields Group...
11:55:30 🚨 alter table `directus_fields` drop `group` - ER_DROP_INDEX_FK: Cannot drop index 'directus_fields_group_foreign': needed in a foreign key constraint
Error: ER_DROP_INDEX_FK: Cannot drop index 'directus_fields_group_foreign': needed in a foreign key constraint

To Reproduce

Running the migration command npx directus database migrate:latest

What version of Directus are you using?

v9-rc.95

What version of Node.js are you using?

16

What database are you using?

MariaDB

What browser are you using?

Brave

What operating system are you using?

macOS 11.5.2

How are you deploying Directus?

locally

@flayks flayks changed the title Broken rc.94->rc.95 migration with Broken rc.94->rc.95 migration with directus_fields/directus_fields_group_foreign Sep 28, 2021
@azrikahar
Copy link
Contributor

Duplicate of #8369

@azrikahar azrikahar marked this as a duplicate of #8369 Sep 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 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