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

[ticket/11755] MySQL upgrader out of date #1694

Merged
merged 1 commit into from
Sep 2, 2013

Conversation

EXreaction
Copy link
Contributor

De-duplicating code from create_schema_files, mysql_upgrader.

New file phpbb/db/schema_data which contains all the current schema data.

New function in db_tools public static function get_dbms_type_map() to make the
type map available everywhere (without requiring $db be setup already)

http://tracker.phpbb.com/browse/PHPBB3-11755

De-duplicating code from create_schema_files, mysql_upgrader.

New file phpbb/db/schema_data which contains all the current schema data.

New function in db_tools public static function get_dbms_type_map() to make the
type map available everywhere (without requiring $db be setup already)

PHPBB3-11755
@bantu
Copy link
Collaborator

bantu commented Sep 2, 2013

The problem here is that mysql_upgrader.php is a tool that people download (as a single file) and run from their phpBB root folder. This is no longer possible post-patch.

@EXreaction
Copy link
Contributor Author

Don't they need to get the upgrader based on the current version they have installed because of the schema differences?

@bantu
Copy link
Collaborator

bantu commented Sep 2, 2013

Yeah, that's what they do. See e.g. https://www.phpbb.com/kb/article/doesnt-have-a-default-value-errors/

@EXreaction
Copy link
Contributor Author

Then that would still be possible--it includes the two required files that are in the phpbb/db/ directory.

@bantu
Copy link
Collaborator

bantu commented Sep 2, 2013

Ahem yeah, that sounds good.

Maybe we can even get rid of the create schema files and have the schema files created on the fly during install. But this is a different problem.

@imkingdavid imkingdavid merged commit 536eeb7 into phpbb:develop Sep 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants