Skip to content

QL-for-QL: Add up- and downgrade scripts#21997

Closed
MathiasVP wants to merge 2 commits into
github:mainfrom
MathiasVP:add-ql-up-and-down-scripts
Closed

QL-for-QL: Add up- and downgrade scripts#21997
MathiasVP wants to merge 2 commits into
github:mainfrom
MathiasVP:add-ql-up-and-down-scripts

Conversation

@MathiasVP

Copy link
Copy Markdown
Contributor

In #21935 we added support for extraction YAML comments and provided upgrade and downgrade scripts for all languages except for QL.

The lack of upgrade and downgrade scripts is now causing CI failures. This PR adds QL to the list of languages for which the misc/scripts/prepare-db-upgrade.sh works and runs it to generate the upgrade and downgrade scripts that would have been generated if it had been run prior to merging #21935.

Copilot AI review requested due to automatic review settings June 17, 2026 14:55
@MathiasVP MathiasVP requested review from a team as code owners June 17, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to unblock CI by adding QL to the languages supported by misc/scripts/prepare-db-upgrade.sh and by committing the generated upgrade/downgrade schema scripts for the “Extract YAML comments” schema change (mirroring what was done for other languages in #21935).

Changes:

  • Extend prepare-db-upgrade.sh to locate the QL dbscheme at ql/ql/src/ql.dbscheme.
  • Add a QL upgrade directory under ql/ql/lib/upgrades/<hash>/ for the YAML-comments schema change.
  • Add a QL downgrade directory under ql/downgrades/<hash>/ for the same schema change.
Show a summary per file
File Description
misc/scripts/prepare-db-upgrade.sh Adds a ql) case to select the correct QL dbscheme path for script generation.
ql/ql/lib/upgrades/c50cdd7429a4598cd95f75c82b4ba453007159d9/upgrade.properties Declares the QL upgrade metadata for “Extract YAML comments”.
ql/ql/lib/upgrades/c50cdd7429a4598cd95f75c82b4ba453007159d9/ql.dbscheme New-side dbscheme snapshot for the QL upgrade (but appears inverted vs intended change).
ql/ql/lib/upgrades/c50cdd7429a4598cd95f75c82b4ba453007159d9/old.dbscheme Old-side dbscheme snapshot for the QL upgrade (but appears inverted vs intended change).
ql/downgrades/87c1125b41a68de7353f538cd7fb73bd0f18bfe0/upgrade.properties Declares the QL downgrade metadata and deletes yaml_comments.rel.
ql/downgrades/87c1125b41a68de7353f538cd7fb73bd0f18bfe0/ql.dbscheme Target dbscheme snapshot for the QL downgrade (includes yaml_comments).
ql/downgrades/87c1125b41a68de7353f538cd7fb73bd0f18bfe0/old.dbscheme Source dbscheme snapshot for the QL downgrade (excludes yaml_comments).

Copilot's findings

  • Files reviewed: 7/7 changed files
  • Comments generated: 1

Comment on lines +97 to +111
yaml_aliases (unique int alias: @yaml_alias_node ref,
string target: string ref);

yaml_scalars (unique int scalar: @yaml_scalar_node ref,
int style: int ref,
string value: string ref);

yaml_errors (unique int id: @yaml_error,
string message: string ref);

yaml_locations(unique int locatable: @yaml_locatable ref,
int location: @location_default ref);

@yaml_locatable = @yaml_node | @yaml_error;

@MathiasVP MathiasVP marked this pull request as draft June 17, 2026 15:06
@MathiasVP MathiasVP closed this Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants