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

Empty db missing patches #121

Open
aJanuary opened this issue Feb 12, 2023 · 2 comments
Open

Empty db missing patches #121

aJanuary opened this issue Feb 12, 2023 · 2 comments

Comments

@aJanuary
Copy link
Contributor

aJanuary commented Feb 12, 2023

The empty db is missing the patches since 75ZED, and the instructions don't tell you that you should run the missing patches. I think either the empty db should be kept up to date, or the instructions should be updated to tell you about the patches.

@lostcarpark
Copy link
Collaborator

Thank you Andrew, that's useful feedback.

It's probably about time we updated the empty and sample database scripts.

Perhaps we could come up with an automated way of generating the database scripts so they could be updated more regularly.

However, it seems unlikely that they will be updated for every change, and they also need to be applied if you bring latest changes into a live PlanZ instance.

I agree the instructions should cover applying patches, and I'll work on adding that. I think we need to work on a comprehensive user guide.

In case you didn't find it, there's a script that will apply any new patches to a PlanZ database. From the root of the repository (the directory containing the webpages/ directory), run the following:

php scripts/db_update.php

It's a good idea to run any time you fetch the latest updates. If there are no new patches, it won't do anything.

@lostcarpark
Copy link
Collaborator

I've opened a pull request with some improvements to the install document.

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

2 participants