output( "Looking for Doctrine DBAL definitions at '$tables'.\n" ); foreach ( glob( $tables ) as $file ) { $table = basename( $file, ".json" ); $this->output( "Processing '$table'.\n" ); foreach ( self::AVAILABLE_DIALECTS as $dialect ) { $target = "$sqlPath/$dialect/$table.sql"; $this->output( "Writing '$target'.\n" ); $this->loadWithArgv( [ "--json=$file", "--type=$dialect", "--sql=$target" ] ); $child = $this->runChild( 'GenerateSchemaSql' ); $child->execute(); } } $this->output( "done.\n" ); } } $maintClass = MathGenerateSql::class; require_once RUN_MAINTENANCE_IF_MAIN;