Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Database Error migrating from 7.0.2 to 7.0.3 blocking my Nextcloud #64

Open
LutzPx23 opened this issue Oct 24, 2024 · 4 comments
Open
Labels
bug Something isn't working testing

Comments

@LutzPx23
Copy link

Hi,
when do this migration, I receive the following database error:

Database error when running migration 070002Date20241020160425 for app gpxpod
An exception occurred while executing a query: SQLSTATE[42803]: Grouping error: 7
ERROR: column "oc_gpxpod_directories.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "id", "user", "path", COUNT(*) FROM "oc_gpxpod_direct...\n

Ciao, Lutz

@julien-nc
Copy link
Owner

Thanks for reporting this. Can you replace the content of lib/Migration/Version070002Date20241020160425.php by https://github.com/julien-nc/gpxpod/blob/fix/64/groupby/lib/Migration/Version070002Date20241020160425.php and try again?

If that works I'll include this change in a release very soon.

@julien-nc julien-nc added bug Something isn't working testing labels Oct 24, 2024
@floviolleau
Copy link

Hi,

Works fine for me.

Thanks!

@julien-nc
Copy link
Owner

Thanks for the feedback. I'll probably make a release later today.
Also, which kind of database are you using? Postgres?

@floviolleau
Copy link

On my side mysql.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working testing
Projects
None yet
Development

No branches or pull requests

3 participants