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

Undefined Table error in empty MaMpf database #746

Open
Splines opened this issue Feb 1, 2025 · 1 comment
Open

Undefined Table error in empty MaMpf database #746

Splines opened this issue Feb 1, 2025 · 1 comment

Comments

@Splines
Copy link
Member

Splines commented Feb 1, 2025

In a completely empty mampf database, we get this error:

PG::UndefinedTable: ERROR:  relation "media" does not exist
LINE 10:  WHERE a.attrelid = '"media"'::regclass

If the database is reseeded beforehand, this error does not occur since the respective tables exist.


To me, this is not an urgent problem since reseeding just fixes this. For people who install MaMpf from the ground up, this can become a problem. As a solution, one would probably have to incorporate a script to the entrypoint that sets up the most basic MaMpf tables such that Rails can actually run through the migrations afterwards.

@Splines
Copy link
Member Author

Splines commented Feb 1, 2025

Might want to modify db/create-mampf-db.sql introduced via #736. See also Pre-seed the database by bind-mounting a SQL script.

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

No branches or pull requests

1 participant