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

Clean setup leads to error Unknown column 'specialrelations.Type' on edit profile page #337

Closed
PLP-GTR opened this issue Dec 8, 2023 · 0 comments · Fixed by #338
Closed

Comments

@PLP-GTR
Copy link
Contributor

PLP-GTR commented Dec 8, 2023

After a clean install using docker the edit profile page is showing an error:

image


Coming from: #219 (comment)

I debugged it a bit. Maybe it's not related to the docker setup, so I don't know if offtopic.

The SQL query leading to the error:

SELECT
    specialrelations.Id AS id,
    specialrelations.IdRelation AS IdRelation,
    members.Username,
    specialrelations.Type AS Type,
    specialrelations.Comment AS Comment,
    specialrelations.Confirmed AS Confirmed
FROM
    specialrelations,
    members
WHERE
    specialrelations.IdOwner = 1  AND
    specialrelations.IdRelation = members.Id AND
    members.Status in ('Active', 'ActiveHidden', 'ChoiceInactive', 'OutOfRemind', 'Pending')
ORDER BY members.Username ASC

Unfortunately the error is catched and not given to frontend. I've connected to the DB and executed it manually, leading to the error:

Unknown column 'specialrelations.Type' in 'field list'

The column is missing, I've checked the migrations and can't find it there. Only occurrence of specialrelations is the modernize table comments1 migration (link):

image

Did I miss some migration command?

Re-applying the test database did not fix it:
$ docker-compose exec php sh -c "php bin/console test:database:create --drop --force"

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

Successfully merging a pull request may close this issue.

1 participant