Gabriel Gigante
DTDrizzle Team
•Created by Gabriel Gigante on 4/26/2025 in #help
Can I set a UNIQUE constraint with a conditional?
I need to ensure uniqueness in an attribute but this attribute can be NULL. A simple
.unique
in my schema does not work in a sqlite database.
My goal is to achieve the equivalent of CREATE UNIQUE INDEX unique_product_barcode_not_null ON products(barCode) WHERE barCode IS NOT NULL;
using the Drizzle schema api.1 replies
DTDrizzle Team
•Created by Gabriel Gigante on 4/25/2025 in #help
LibsqlError: SERVER_ERROR: Server returned HTTP status 404
Hi guys, anyone else getting this error on running large migrations?
this transaction fails if products has length greater than 15. These queries works if running without a transaction.
1 replies