go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.09k stars 5.49k forks source link

[Feature] add Postgress Version Check #12034

Open 6543 opened 4 years ago

6543 commented 4 years ago

some old versions dont work see:

6543 commented 4 years ago

... https://github.com/go-gitea/gitea/pull/12036

lunny commented 4 years ago

Just send a PR to xorm to add a DBVersion method. https://gitea.com/xorm/xorm/pulls/1723

zeripath commented 4 years ago

https://github.com/go-gitea/gitea/issues/11951#issuecomment-649034188

@6543 It looks like that drone failed on the migration tests which were not setup for old postgreSQLs - it's possible that the tests would have succeeded if you had excluded the migration-tests.

6543 commented 4 years ago

Throu migration has to work correctly too ...

zeripath commented 4 years ago

That test is not failing on migration it's failing on restoring from the backup - which was generated on a newer postgres.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

6543 commented 4 years ago

ping