mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Merge "schema: Move all sql files to sql folder"
This commit is contained in:
commit
669d53a714
|
@ -31,7 +31,7 @@ class MathGenerateSql extends Maintenance {
|
||||||
$table = basename( $file, ".json" );
|
$table = basename( $file, ".json" );
|
||||||
$this->output( "Processing '$table'.\n" );
|
$this->output( "Processing '$table'.\n" );
|
||||||
foreach ( self::AVAILABLE_DIALECTS as $dialect ) {
|
foreach ( self::AVAILABLE_DIALECTS as $dialect ) {
|
||||||
$target = "$sqlPath/../db/$table.$dialect.sql";
|
$target = "$sqlPath/$dialect/$table.sql";
|
||||||
$this->output( "Writing '$target'.\n" );
|
$this->output( "Writing '$target'.\n" );
|
||||||
$this->loadWithArgv( [ "--json=$file", "--type=$dialect", "--sql=$target" ] );
|
$this->loadWithArgv( [ "--json=$file", "--type=$dialect", "--sql=$target" ] );
|
||||||
$child = $this->runChild( 'GenerateSchemaSql' );
|
$child = $this->runChild( 'GenerateSchemaSql' );
|
||||||
|
|
|
@ -45,7 +45,7 @@ class Hooks {
|
||||||
foreach ( [ 'mathoid', 'mathlatexml' ] as $mode ) {
|
foreach ( [ 'mathoid', 'mathlatexml' ] as $mode ) {
|
||||||
$updater->addExtensionTable(
|
$updater->addExtensionTable(
|
||||||
$mode,
|
$mode,
|
||||||
__DIR__ . "/../db/$mode.$type.sql"
|
__DIR__ . "/../sql/$type/$mode.sql"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class Hooks {
|
||||||
$updater->addExtensionField(
|
$updater->addExtensionField(
|
||||||
'mathoid',
|
'mathoid',
|
||||||
'math_png',
|
'math_png',
|
||||||
__DIR__ . '/../db/patches/mathoid.add_png.mysql.sql'
|
__DIR__ . '/../sql/' . $type . '/patch-mathoid.add_png.sql'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue