Include migration in the docker-compose.yml #22715
Closed
Pachat
started this conversation in
Feature Requests
Replies: 1 comment
-
Running migrations is already included in the docker image all you have to do for an update is update your image to the latest version from Running migrations wont get you out of a previously created database error state tho. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I added the following command in my docker-compose.yml
The I run
$ docker compose run migrate
But get this error
"select * from
directus_migrationsorder by
versionasc - SQLITE_ERROR: no such table: directus_migrations"
which reveals that the migration latest is not run properly from 10.10.5 to 10.12.1
It would be nice to have in the example
image: directus/directus:latest
and be able to integrate the migration.
Or to tell how to run npx directus database migrate:latest in a container that is always restarting because of the following:
ERROR: select * from
directus_migrationsorder by
versionasc - SQLITE_ERROR: no such table: directus_migrations
Don't know if it is a bug, so I post here as a discussion.
Basic Example
No response
Motivation
Go easily from one version to the latest
Detailed Design
Implementing in docker-compose.yml
Requirements List
Must Have:
Should Have:
Could Have:
Won't Have:
Drawbacks
none
Alternatives
export locally, run the command locally, the import. But that's a lot.
Adoption Strategy
Easy
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions