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

Schema apply not consistent with snapshot #20439

Open
u12206050 opened this issue Nov 16, 2023 · 0 comments
Open

Schema apply not consistent with snapshot #20439

u12206050 opened this issue Nov 16, 2023 · 0 comments

Comments

@u12206050
Copy link
Contributor

Describe the Bug

The schema snapshot is not aligned with the MYSQL database snapshot.

Using mysql and the following schema file (rename to .yaml) we are unable to apply the snapshot again and again.

schemap.txt

To Reproduce

Download and rename the snapshot to schema.yaml

On a fresh database after running npx directus bootstrap

Run directus schema apply ./schema.yaml --yes // should work

Then try once again directus schema apply ./schema.yaml // Notice that it wants to make a lot of updates even though you just applied it.

Saying yes, would attempt to update the db, but will fail due to foreign key constraints.

Directus Version

10.6-10.7

Hosting Strategy

Self-Hosted (Docker Image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants