Standardize adjustment reason categories and descriptions
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
CREATE TYPE "AdjustmentReasonCategory" AS ENUM ('SHRINKAGE', 'DAMAGE', 'REGRADE', 'ADJUSTMENT');
|
||||
|
||||
ALTER TABLE "adjustment_reasons"
|
||||
ADD COLUMN "description" VARCHAR(255);
|
||||
|
||||
ALTER TABLE "adjustment_reasons"
|
||||
ALTER COLUMN "category" TYPE "AdjustmentReasonCategory"
|
||||
USING ("category"::"AdjustmentReasonCategory");
|
||||
Reference in New Issue
Block a user