EDVJECDIUUOSU4TS2DCL25MJDR5RQG7PQVTYEM6R3B4SFGKSX6MAC
ZI2RJOZ2HXBHX7L54BTSDKESY6NG5KBJLVHCNY7K7ZLGIUOIHQUQC
E4HFJ4L4PAGV7R7EXVG2B2CWDGGW7XWU4D37VURZ66HZ3ILHCFUAC
WYTMZJFYVKHR4QH7AV5JUNWXT6NAC5NNQNPZCQSDI6LGI7DVXFYAC
EGNRBQUMOZHAF5B7KCMTAPMB4H3USK4MK33Q6T5V26D6HOJNW6LQC
UCY5PVFCT2QIOGR47KFS4KBF2ZPHRBOAIOH6PJEVWCHLMBRBLOMQC
5FCMFAPUTCCO2JILRWLC4PHOSHYFCQNH3D7PKLA267MHVZADOX2AC
strain_family_effect.id
`)).rows//I guess it's necessary to group by strain_family_effect.id as well because there's no way for postgres to know that there'll only be one row in the result per strain_family_effect. ask dba
strain_family.id
`)).rows//I guess it's necessary to group by strain_family.id as well because there's no way for postgres to know that there'll only be one row in the result per strain_family. ask dba
await pool.query(query.slice(0, -1), params);
await pool.query(query.slice(0, -1) + ` on conflict on constraint unique_menu_item do update set
cbd_min = excluded.cbd_min,
cbd_max = excluded.cbd_max,
thc_min = excluded.thc_min,
thc_max = excluded.thc_max,
price = excluded.price,
featured = excluded.featured
`,
params
);