From 11b1a88d49a139012ca1c44a9e1e8cee674d178f Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Tue, 26 Nov 2024 14:00:04 +0100 Subject: [PATCH] Updated database with new programmer linker table --- necto_db_dev.db | Bin 11473920 -> 11478016 bytes utils/databases/queries/Programmer.sql | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/necto_db_dev.db b/necto_db_dev.db index c221a10e1978ecdd3c3f27059e3315698373a01f..55c3524d21fe11fee0452093e4e9cb9704a4d204 100644 GIT binary patch delta 3900 zcmeH}TW}L)6vub>Bix}$n>0yANdM*XjJvxBu@uXTP)G zH+1Q`Zs^8!-3hBHin2InB zVLHMLgqa9s2zmqqLODVOf)T-lP>Enhs6wzHR3lgsW+8|Ovk`0vb_54P4T2M44ni%$ zTm%MuaAW`3TJj3lQ809s~(tAwmm+7oiowhp-4?F~Smrr3lLqmLse{ zXhUd6Sc$L-VKqVr!Wx9N2_F&3cm&~5gvSte zB0P@p1j3UDPa!;w@CKFQqDA`Clv1Hq`gDiKRYqO#JJ*s3JLN+1@Kl~P*64W{SE-b-{7Q6fgfi3E`(o+T8bhv+5xh<;*#7$o))`-ua@ zbHqX7c_Kv&5yQj_#EZls0*S-K5#lA{DDg7!3UQ1$PP|IIMw}o{60Z}dh&PBgiMNOm z;%(v`;xuuFc$YX!yhprGoFmQ?7l;pti^PY-N5sd(CE^p}Q{pq?bK>%~*4tm)^mgiK z(+lh#{cX6(?z4OBAoH_ztbv(?e}z%umhiQ3R@g82h1G&X(D9@E&-@ksG=Gra#dq*d zelmBL`;EKKo#zgZ*zMpf6Q)Wwawa4 zI27^+l$bxBh|7LC5R6!=nM-3!OUU@rKUNEKIWrHZ#-`N9B#*T!7cB^;Q?D{JmzbY- z?8(rcq<=8vvs4z%mx;K&7SjVlk|$*`7R2I%$;>h-m+A`U(xgwJeEyDd=F;R(vEl+4 z3Y$=PZer)tNlg)~knR_TRJW@3|SkY7oY66p!`nQQ5>8#k%`SD zJJX9P%CJ_)#CG+mkzt)soia|)&aHMyC1avf9hk{9y-zBIBAxb%Z|e>i>6FXTNOJ?PFctz{wo@on2*T*Z~$~ z>zSKb*%aY#;V*1#<^SY=;=kfA@W=TyGrcsAp06#+51F`~gurC~z^C3eU`6jy) zL3N34Z^a5`wG|eH#N|0r9hq`_jmzkZJgzQouYM`5OH&t8mZX(jVMtk=QB*Th7Lihr zpwUO}<7z{dXw4QUr4~{07`)@EBYE^KWTz>P?98|qc9-2^-?7Wo_eZZejxGO(zt*@Re<&4%57M cpK&X*iQ{|1SG9%iqNQ5Gr{7GL+K%x32N3>BLI3~& delta 690 zcmYMwXIBjX0EhA0tsBv$6iHIaZfIY7WMqYuP1a*&uaMC#{Ux)EvW1ZO&he(V&fzmS zeGRYu-+9jYeSs(XYakTu9|(13BzFe_c|QaHE9uHF4Rr?!8#`JMF(N2pMVttUcrio_ z6$xUP7%mb;Sd0)OMUqGsqeO~G6{E!%ktW89bTLk3i18v*Ob}TjTjYp|B3Dcjlf@J< zRZJ7p#SD=r@AB6RFsKwQ6VB?mY6N(h`C~(m@gKHg<_FdEGoqku~aM* z%SDw~Ay$f2VzpQ!s>NEdPOKL-VuPp^bz-B~BsPmJVyoCDwu>ENr>GaZ#BQ-i>=pZj zU+otM#6fXL9R5y2@1MlDm`EVl7Oabj1e1Dl%HscKwlwwCCl{opl&9yWw`PTNi^JiB zgxb35(vqs8%AT6+*wpsOV1pg8qjt=W+X*{qr|h(yv9os08tuGYu#47Ym+Z1#v8&c> zQERbQyJl@ByKe1v!#eDy-Ll(u$L`ua>$EPrZx8IDJ+f}=vB&nrp4u~eZZGVmy|P|= fZEx(Y_1QanZy&7RKH4YyY+vl_kI3M+-xdD=?mQyW diff --git a/utils/databases/queries/Programmer.sql b/utils/databases/queries/Programmer.sql index c61559529..d42110846 100644 --- a/utils/databases/queries/Programmer.sql +++ b/utils/databases/queries/Programmer.sql @@ -1,6 +1,6 @@ SELECT *, - (uid) AS item_uid, + (uid) AS item_uid, (name) AS item_title FROM Programmers @@ -19,4 +19,14 @@ WHERE LIMIT 1 ) - ) AND (Programmers.installed = 1) AND (Programmers.name LIKE '%%1%') \ No newline at end of file + ) + AND Programmers.uid IN ( + SELECT + programmer_uid + FROM + CompilerToProgrammer + WHERE + compiler_uid = (SELECT uid FROM SelectedCompiler) + ) + AND Programmers.installed = 1 + AND Programmers.name LIKE '%%1%'