Mobile app version of vmapp.org
Login or Join
Nimeshi995

: 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

@Nimeshi995

Posted in: #Mediawiki

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 ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme