Skip to content

[BUG] Can't run migrations: no bin target named migrate #22

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

Open
moan0s opened this issue Mar 30, 2025 · 2 comments
Open

[BUG] Can't run migrations: no bin target named migrate #22

moan0s opened this issue Mar 30, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@moan0s
Copy link

moan0s commented Mar 30, 2025

Description

Migrations can't be run/do not exist.

To Reproduce

Steps to reproduce the behavior:

  1. Clone repo git clone https://github.com/DioCrafts/oxicloud.git && cd oxicloud
  2. Build release cargo build --release
  3. Run cargo run --bin migrate
  4. See error
➜  oxicloud git:(main) ✗ cargo run --bin migrate
error: no bin target named `migrate`.
Available bin targets:
    oxicloud

Expected Behavior

Migrations are run on the database.

Environment

  • OS: Fedora
  • Browser: irrelevant
  • OxiCloud Version: 0.1.0
  • Rust Version: 1.84.0

Additional Context

I have a running postgres container but did not mount the schema

Possible Solution

I have no experience with sqlx so very limited idea of what's going on (and don't fully understand you spanish comments). To me it seems like create_database_pool should be run as it contains a query for fresh installations that creates a database schema https://github.com/DioCrafts/OxiCloud/blob/main/src/common/db.rs
So maybe it's enough to add an entrypoint for that?

@moan0s moan0s added the bug Something isn't working label Mar 30, 2025
@moan0s moan0s mentioned this issue Mar 30, 2025
10 tasks
@chris-reusch
Copy link

Also experiencing this issue! Thanks for posting

@DioCrafts
Copy link
Owner

Good morning @moan0s @chris-reusch Thank you for your report!! I will check this issue ASAP.

Kind regards and have a good day 😃

@DioCrafts DioCrafts self-assigned this Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants