diff options
author | zsloan | 2020-05-12 10:03:52 -0500 |
---|---|---|
committer | zsloan | 2020-05-12 10:03:52 -0500 |
commit | 79e95ef6a1d8fca8fb505ff09f1a85e2c2fd3afc (patch) | |
tree | dd0b4363239fcef0d1164d4b6c2983713e32f63d /scripts | |
parent | 2a2a14899beade4b2dff0c977162ddfe361841a4 (diff) | |
parent | 55f82e6f703d9af3e8b93d6c4930f3ce3681405f (diff) | |
download | genenetwork2-79e95ef6a1d8fca8fb505ff09f1a85e2c2fd3afc.tar.gz |
Merging Danny's changes and Bonface's changes to js imports
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/add_missing_columns.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/add_missing_columns.sh b/scripts/add_missing_columns.sh new file mode 100644 index 00000000..70d5fdeb --- /dev/null +++ b/scripts/add_missing_columns.sh @@ -0,0 +1,24 @@ + #! /bin/bash + # + # Add missing columns to test db downloaded from: + # https://s3.amazonaws.com/genenetwork2/db_webqtl_s.zip + + QUERY=" + ALTER TABLE InbredSet + ADD Family varchar(20) AFTER FullName, + ADD FamilyOrder varchar(20) AFTER Family, + ADD MenuOrderId smallint(6) AFTER FamilyOrder, + ADD InbredSetCode varchar(5) AFTER MenuOrderId; + + ALTER TABLE PublishXRef + ADD mean double AFTER DataId; + + -- This takes some time + ALTER TABLE ProbeSet + ADD UniProtID varchar(20) AFTER ProteinName; + " + + USER=gn2 + DBNAME=db_webqtl_s + PASS=mysql_password + mysql -u"$USER" -p"$PASS" -h localhost -D "$DBNAME" -e "$QUERY" |