Skip to content

Commit

Permalink
feat(data): Refactor SQL files for dumping data into openchallenges-db (
Browse files Browse the repository at this point in the history
#2142)

* enable local infile in MariaDB

* refactor `platforms` table sql

* whoops - add `LOCAL` to statement

* move flat file; update filepath

* remove \r from line termination

* add flat files

* refactor statements

* remove comment to add back in featured orgs

* update flat files
  • Loading branch information
vpchung authored Sep 30, 2023
1 parent 4dba30a commit 8395cb1
Show file tree
Hide file tree
Showing 10 changed files with 3,129 additions and 10,269 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
"","incentives","challenge_id"
"1","publication","1"
"2","publication","2"
"3","speaking_engagement","2"
"4","monetary","3"
"5","publication","5"
"6","speaking_engagement","5"
"7","publication","6"
"8","speaking_engagement","6"
"9","monetary","7"
"10","publication","7"
"11","publication","8"
"12","speaking_engagement","8"
"13","publication","9"
"14","publication","10"
"15","speaking_engagement","10"
"16","publication","11"
"17","speaking_engagement","11"
"18","publication","12"
"19","speaking_engagement","12"
"20","monetary","14"
"21","publication","14"
"22","speaking_engagement","14"
"23","monetary","15"
"24","publication","15"
"25","speaking_engagement","15"
"26","publication","16"
"27","speaking_engagement","16"
"28","publication","17"
"29","speaking_engagement","17"
"30","monetary","24"
"31","publication","24"
"32","speaking_engagement","24"
"33","monetary","25"
"34","publication","25"
"35","speaking_engagement","25"
"36","publication","26"
"37","monetary","27"
"38","publication","27"
"39","publication","28"
"40","publication","29"
"41","publication","30"
"42","publication","31"
"43","speaking_engagement","31"
"44","publication","33"
"45","speaking_engagement","33"
"46","publication","34"
"47","speaking_engagement","34"
"48","publication","37"
"49","speaking_engagement","37"
"50","publication","38"
"51","speaking_engagement","38"
"52","monetary","46"
"53","publication","84"
"54","publication","88"
"55","other","88"
"56","publication","89"
"57","speaking_engagement","89"
"58","publication","90"
"59","speaking_engagement","90"
"60","other","91"
"61","monetary","100"
"62","monetary","102"
"63","monetary","103"
"64","monetary","107"
"65","monetary","112"
"66","monetary","113"
"67","monetary","118"
"68","monetary","120"
"69","monetary","134"
"70","monetary","135"
"71","monetary","136"
"72","monetary","137"
"73","monetary","138"
"74","monetary","145"
"75","publication","146"
"76","other","146"
"77","publication","147"
"78","speaking_engagement","147"
"79","publication","148"
"80","speaking_engagement","148"
"81","publication","149"
"82","speaking_engagement","149"
"83","publication","150"
"84","other","150"
"85","publication","151"
"86","speaking_engagement","151"
"87","publication","152"
"88","speaking_engagement","152"
"89","publication","154"
"90","speaking_engagement","155"
"91","other","155"
"92","publication","157"
"93","publication","158"
"94","speaking_engagement","158"
"95","monetary","160"
"96","speaking_engagement","160"
"97","publication","162"
"98","monetary","164"
"99","monetary","165"
"100","monetary","166"
"101","speaking_engagement","166"
"102","monetary","167"
"103","monetary","168"
"104","monetary","169"
"105","speaking_engagement","169"
"106","monetary","171"
"107","speaking_engagement","171"
"108","monetary","172"
"109","monetary","173"
"110","monetary","174"
"111","publication","175"
"112","publication","176"
"113","publication","177"
"114","publication","178"
"115","publication","179"
"116","publication","180"
"117","monetary","181"
"118","monetary","182"
"119","speaking_engagement","182"
"120","other","182"
"121","monetary","183"
"122","speaking_engagement","183"
"123","monetary","184"
"124","publication","184"
"125","publication","185"
"126","speaking_engagement","185"
"127","other","185"
"128","publication","186"
"129","speaking_engagement","186"
"130","other","187"
"131","publication","188"
"132","speaking_engagement","188"
"133","monetary","189"
"134","publication","189"
"135","speaking_engagement","189"
"136","monetary","190"
"137","publication","190"
"138","speaking_engagement","190"
"139","publication","191"
"140","speaking_engagement","191"
"141","publication","192"
"142","speaking_engagement","192"
"143","publication","193"
"144","speaking_engagement","193"
"145","publication","194"
"146","speaking_engagement","194"
"147","publication","195"
"148","publication","196"
"149","publication","197"
"150","publication","198"
"151","publication","199"
"152","monetary","216"
"153","publication","216"
"154","monetary","217"
"155","publication","217"
"156","monetary","218"
"157","publication","218"
"158","monetary","219"
"159","publication","219"
"160","other","220"
"161","publication","221"
"162","publication","222"
"163","speaking_engagement","222"
"164","publication","223"
"165","speaking_engagement","223"
"166","publication","224"
"167","speaking_engagement","224"
"168","publication","225"
"169","speaking_engagement","225"
"170","publication","226"
"171","speaking_engagement","226"
"172","publication","227"
"173","speaking_engagement","227"
"174","publication","228"
"175","speaking_engagement","228"
"176","publication","229"
"177","speaking_engagement","229"
"178","publication","230"
"179","speaking_engagement","230"
"180","publication","231"
"181","speaking_engagement","231"
"182","publication","232"
"183","speaking_engagement","232"
"184","publication","233"
"185","speaking_engagement","233"
"186","publication","234"
"187","speaking_engagement","234"
"188","publication","235"
"189","speaking_engagement","235"
"190","publication","236"
"191","speaking_engagement","236"
"192","publication","237"
"193","speaking_engagement","237"
"194","publication","238"
"195","speaking_engagement","238"
"196","publication","239"
"197","speaking_engagement","239"
"198","publication","240"
"199","speaking_engagement","240"
"200","publication","241"
"201","speaking_engagement","241"
"202","publication","242"
"203","speaking_engagement","242"
"204","publication","243"
"205","speaking_engagement","243"
"206","publication","244"
"207","speaking_engagement","244"
"208","publication","245"
"209","speaking_engagement","245"
"210","publication","246"
"211","speaking_engagement","246"
"212","publication","247"
"213","speaking_engagement","247"
"214","publication","248"
"215","speaking_engagement","248"
"216","publication","249"
"217","speaking_engagement","249"
"218","publication","250"
"219","speaking_engagement","250"
"220","publication","251"
"221","speaking_engagement","251"
"222","publication","252"
"223","speaking_engagement","252"
"224","publication","253"
"225","speaking_engagement","253"
"226","publication","254"
"227","speaking_engagement","254"
"228","publication","255"
"229","speaking_engagement","255"
"230","publication","256"
"231","speaking_engagement","256"
"232","publication","257"
"233","speaking_engagement","257"
"234","publication","258"
"235","speaking_engagement","258"
"236","publication","259"
"237","speaking_engagement","259"
"238","publication","260"
"239","speaking_engagement","260"
"240","publication","261"
"241","speaking_engagement","261"
"242","publication","262"
"243","speaking_engagement","262"
"244","publication","263"
"245","speaking_engagement","263"
"246","publication","264"
"247","speaking_engagement","264"
"248","publication","265"
"249","speaking_engagement","265"
"250","publication","266"
"251","speaking_engagement","266"
"252","publication","269"
"253","speaking_engagement","269"
"254","publication","270"
"255","speaking_engagement","270"
"256","publication","271"
"257","speaking_engagement","271"
"258","publication","272"
"259","speaking_engagement","272"
"260","publication","273"
"261","speaking_engagement","273"
"262","publication","274"
"263","speaking_engagement","274"
"264","publication","275"
"265","speaking_engagement","275"
"266","publication","276"
"267","speaking_engagement","276"
"268","publication","277"
"269","speaking_engagement","277"
"270","publication","278"
"271","speaking_engagement","278"
"272","publication","279"
"273","speaking_engagement","279"
Loading

0 comments on commit 8395cb1

Please sign in to comment.