mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +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" );
|
||||
$this->output( "Processing '$table'.\n" );
|
||||
foreach ( self::AVAILABLE_DIALECTS as $dialect ) {
|
||||
$target = "$sqlPath/../db/$table.$dialect.sql";
|
||||
$target = "$sqlPath/$dialect/$table.sql";
|
||||
$this->output( "Writing '$target'.\n" );
|
||||
$this->loadWithArgv( [ "--json=$file", "--type=$dialect", "--sql=$target" ] );
|
||||
$child = $this->runChild( 'GenerateSchemaSql' );
|
||||
|
|
|
@ -45,7 +45,7 @@ class Hooks {
|
|||
foreach ( [ 'mathoid', 'mathlatexml' ] as $mode ) {
|
||||
$updater->addExtensionTable(
|
||||
$mode,
|
||||
__DIR__ . "/../db/$mode.$type.sql"
|
||||
__DIR__ . "/../sql/$type/$mode.sql"
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ class Hooks {
|
|||
$updater->addExtensionField(
|
||||
'mathoid',
|
||||
'math_png',
|
||||
__DIR__ . '/../db/patches/mathoid.add_png.mysql.sql'
|
||||
__DIR__ . '/../sql/' . $type . '/patch-mathoid.add_png.sql'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue