Skip to content

Commit f169950

Browse files
committed
testing new approach
1 parent 90c26a1 commit f169950

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ jobs:
151151
- name: Load Database Data (Windows)
152152
if: matrix.os == 'windows-latest'
153153
run: |
154-
mysql -uroot -pok < tests/files/test_db_dump.sql
155-
mysql -uroot -pok -e "UPDATE openml.file SET filepath = CONCAT('http://minio:9000/datasets/0000/', LPAD(id, 4, '0'), '/', SUBSTRING_INDEX(filepath, '/', -1)) WHERE extension='arff';"
156-
mysql -uroot -pok -e "UPDATE openml_expdb.dataset DS, openml.file FL SET DS.url = FL.filepath WHERE DS.did = FL.id;"
154+
Get-Content tests/files/test_db_dump.sql | mysql -uroot -pok
155+
mysql -uroot -pok -e "UPDATE openml.file SET filepath = CONCAT('http://minio:9000/datasets/0000/', LPAD(id, 4, '0'), '/', SUBSTRING_INDEX(filepath, '/', -1)) WHERE extension='arff';" mysql -uroot -pok -e "UPDATE openml_expdb.dataset DS, openml.file FL SET DS.url = FL.filepath WHERE DS.did = FL.id;"
157156
mysql -uroot -pok -Dopenml_expdb -e "CREATE TABLE IF NOT EXISTS data_feature_description (did int unsigned NOT NULL, index int unsigned NOT NULL, uploader mediumint unsigned NOT NULL, date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, description_type enum('plain', 'ontology') NOT NULL, value varchar(256) NOT NULL, KEY did (did,index));"
158157
mysql -uroot -pok -Dopenml_expdb -e "INSERT IGNORE INTO dataset_status VALUES (1, 'active', '2024-01-01 00:00:00', 1);"
159158
mysql -uroot -pok -Dopenml_expdb -e "DELETE FROM dataset_status WHERE did = 2 AND status = 'deactivated';"

0 commit comments

Comments
 (0)