: How to use the database table-prefix to create tables on LoadExtensionSchemaUpdates in Mediawiki? This relates to a previous question. What is the proper way to include $wgDBprefix in the sql
This relates to a previous question.
What is the proper way to include $wgDBprefix in the sql or hook function so that when tables are created or updated on LoadExtensionSchemaUpdates, the created table names start with the value of $wgDBprefix ?
More posts by @Nimeshi995
1 Comments
Sorted by latest first Latest Oldest Best
In the SQL code, /*_*/ will be replaced with the prefix. For the table name parameter passed to the hook function, replacement will be handled automatically (but that is only used to determine whether the patchfile needs to be executed).
I've updated the patchfile documentation a bit, you can find further details there.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.