Files
threadcount-community/prisma/migrations/20260909070303_facility_barcode_seq/migration.sql
T
ThreadCount 1bc2de655a ThreadCount Community edition
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
2026-09-13 08:45:19 +10:00

6 lines
350 B
SQL

-- Numbers the barcodes a room prints for garments that arrived without one.
--
-- Sits beside orderSeq, catalogSeq and requestSeq and is incremented in the same transaction that
-- binds the code, so two people labelling a rack at the same time cannot mint the same number.
ALTER TABLE "Facility" ADD COLUMN "barcodeSeq" INTEGER NOT NULL DEFAULT 0;