feat: profit sharing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE categories
|
||||
DROP CONSTRAINT IF EXISTS categories_parent_id_fkey;
|
||||
ALTER TABLE categories
|
||||
DROP COLUMN IF EXISTS parent_id;
|
||||
|
||||
DROP INDEX IF EXISTS idx_categories_parent_id;
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE categories
|
||||
ADD COLUMN parent_id UUID REFERENCES categories(id) ON DELETE SET NULL;
|
||||
|
||||
CREATE INDEX idx_categories_parent_id ON categories(parent_id);
|
||||
Reference in New Issue
Block a user