Merge "schema: Move all sql files to sql folder"

This commit is contained in:
jenkins-bot 2022-06-23 21:53:57 +00:00 committed by Gerrit Code Review
commit 669d53a714
9 changed files with 3 additions and 3 deletions

View file

@ -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' );

View file

@ -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'
);
}
}