initial distributions rework

This commit is contained in:
wish
2023-11-05 00:31:16 +11:00
parent cf8a5da0b2
commit be6f55b5a8
3 changed files with 78 additions and 71 deletions

View File

@@ -0,0 +1,15 @@
BEGIN;
-- This will delete all of your old distribution data!
--ALTER TABLE IF EXISTS public.distribution DROP COLUMN IF EXISTS data;
CREATE TABLE public.distribution_items
(
id serial PRIMARY KEY,
distribution_id integer,
item_type integer,
item_id integer,
quantity integer
);
END;