4.15.0: Добавлена принадлежность желаний к проектам
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m33s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m33s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- Migration: Remove project_id field from wishlist_items table
|
||||
-- Date: 2026-02-02
|
||||
--
|
||||
-- This migration reverts the addition of project_id field.
|
||||
|
||||
DROP INDEX IF EXISTS idx_wishlist_items_project_id;
|
||||
|
||||
ALTER TABLE wishlist_items
|
||||
DROP COLUMN IF EXISTS project_id;
|
||||
@@ -0,0 +1,13 @@
|
||||
-- Migration: Add project_id field to wishlist_items table
|
||||
-- Date: 2026-02-02
|
||||
--
|
||||
-- This migration adds project_id field to wishlist_items table to allow
|
||||
-- grouping wishlist items by project. The field is nullable, so existing
|
||||
-- items without a project will remain valid.
|
||||
|
||||
ALTER TABLE wishlist_items
|
||||
ADD COLUMN project_id INTEGER REFERENCES projects(id) ON DELETE SET NULL;
|
||||
|
||||
CREATE INDEX idx_wishlist_items_project_id ON wishlist_items(project_id);
|
||||
|
||||
COMMENT ON COLUMN wishlist_items.project_id IS 'Project this wishlist item belongs to (optional)';
|
||||
Reference in New Issue
Block a user