Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5970089
SchemaHooksHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
SchemaHooksHandler.php
View Options
<?php
namespace
MediaWiki\Extension\Math\HookHandlers
;
use
MediaWiki\Installer\DatabaseUpdater
;
use
MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook
;
/**
* Hook handler for schema hook
*/
class
SchemaHooksHandler
implements
LoadExtensionSchemaUpdatesHook
{
/**
* LoadExtensionSchemaUpdates handler; set up math table on install/upgrade.
*
* @param DatabaseUpdater $updater
*/
public
function
onLoadExtensionSchemaUpdates
(
$updater
)
{
$type
=
$updater
->
getDB
()->
getType
();
if
(
!
in_array
(
$type
,
[
'mysql'
,
'sqlite'
,
'postgres'
],
true
)
)
{
return
;
}
foreach
(
[
'mathoid'
,
'mathlatexml'
]
as
$mode
)
{
$updater
->
dropExtensionTable
(
$mode
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 14:13 (8 h, 41 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/4f/46657d38099ffa03e5af84108d46
Default Alt Text
SchemaHooksHandler.php (690 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment