File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export interface DbInfo {
6060export interface UpgradesInfo {
6161 scripts : string [ ] ;
6262 finalDbscheme : string ;
63+ matchesTarget ?: boolean ;
6364}
6465
6566/**
@@ -652,9 +653,11 @@ export class CodeQLCliServer implements Disposable {
652653 * @param searchPath A list of directories to search for upgrade scripts.
653654 * @returns A list of database upgrade script directories
654655 */
655- resolveUpgrades ( dbScheme : string , searchPath : string [ ] ) : Promise < UpgradesInfo > {
656+ resolveUpgrades ( dbScheme : string , searchPath : string [ ] , targetDbScheme ?: string ) : Promise < UpgradesInfo > {
656657 const args = [ '--additional-packs' , searchPath . join ( path . delimiter ) , '--dbscheme' , dbScheme ] ;
657-
658+ if ( targetDbScheme ) {
659+ args . push ( '--target-dbscheme' , targetDbScheme ) ;
660+ }
658661 return this . runJsonCodeQlCliCommand < UpgradesInfo > (
659662 [ 'resolve' , 'upgrades' ] ,
660663 args ,
You can’t perform that action at this time.
0 commit comments