muchobien / pocketbase-docker

Pocketbase docker image
345 stars 59 forks source link

Issue with migrate collections #16

Closed McAndze closed 1 year ago

McAndze commented 1 year ago

Hi and thank you for making it easy to deploy Pocketbase with Docker.

I have run into a slight issue which I can only replicate when running Pocketbase in a Docker container using your image. I've replicated this on multiple versions including the latest 0.18.10.

When running pocketbase migrate collections (either in Docker desktop or using docker compose exec -it pocketbase sh -c "/usr/local/bin/pocketbase migrate collections"), I get this error: Failed to fetch migrations list: SQL logic error: no such table: _collections (1)

As said, this does not happen if I just download the executable and perform the same command. I'm not sure whether this is even an issue with your image, but perhaps you or someone here might know how to solve it.

McAndze commented 1 year ago

Solution turned out to be much simpler than expected, just run pocketbase migrate collections instead of /usr/local/bin/pocketbase migrate collections