Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b98775

Browse files
committed
Merge upgrades qlpack into ql/src
1 parent 2094aa9 commit 8b98775

8 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
- name: Build Query Pack
8282
run: |
8383
codeql/codeql pack create ql/src --output target/packs
84-
codeql/codeql pack create upgrades --output target/packs
8584
cp -r ql/src/codeql-suites target/packs/github_codeql-ruby_*/
8685
- name: Compile with previous CodeQL versions
8786
run: |

prepare-db-upgrade.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ To create the upgrade directory manually, without using `prepare-db-upgrade.sh`:
8383

8484
1. Get a hash of the old `.dbscheme` file, from just before your changes. You can do this by checking out the code prior to your changes and running `git hash-object ql/src/ruby.dbscheme`
8585

86-
2. Go back to your branch and create an upgrade directory with that hash as its name, for example: `mkdir upgrades/454f1e15151422355049dc4f1f0486a03baeffef`
86+
2. Go back to your branch and create an upgrade directory with that hash as its name, for example: `mkdir ql/src/upgrades/454f1e15151422355049dc4f1f0486a03baeffef`
8787

8888
3. Copy the old `.dbscheme` file to that directory, using the name old.dbscheme.
89-
`cp ql/src/ruby.dbscheme upgrades/454f1e15151422355049dc4f1f0486a03baeffef/old.dbscheme`
89+
`cp ql/src/ruby.dbscheme ql/src/upgrades/454f1e15151422355049dc4f1f0486a03baeffef/old.dbscheme`
9090

91-
4. Put a copy of your new `.dbscheme` file in that directory and create an `upgrade.properties` file (as described above).
91+
4. Put a copy of your new `.dbscheme` file in that directory and create an `upgrade.properties` file (as described above).

prepare-db-upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if [ $# -gt 0 ]; then
6262
fi
6363

6464
scheme_file="ql/src/ruby.dbscheme"
65-
upgrade_root="upgrades"
65+
upgrade_root="ql/src/upgrades"
6666

6767
check_hash_valid()
6868
{

ql/src/qlpack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ version: 0.0.0
33
dbscheme: ruby.dbscheme
44
suites: codeql-suites
55
extractor: ruby
6+
upgrades: upgrades

upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/old.dbscheme renamed to ql/src/upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/old.dbscheme

File renamed without changes.

upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/ruby.dbscheme renamed to ql/src/upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/ruby.dbscheme

File renamed without changes.

upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/upgrade.properties renamed to ql/src/upgrades/8725deeb2fa6627c45235f18b7c121c35498dac7/upgrade.properties

File renamed without changes.

upgrades/qlpack.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)