8 lines
285 B
MySQL
8 lines
285 B
MySQL
|
|
-- Migration 106: Add product_id to subscription items
|
||
|
|
|
||
|
|
ALTER TABLE sag_subscription_items
|
||
|
|
ADD COLUMN IF NOT EXISTS product_id INTEGER REFERENCES products(id) ON DELETE SET NULL;
|
||
|
|
|
||
|
|
CREATE INDEX IF NOT EXISTS idx_sag_subscription_items_product
|
||
|
|
ON sag_subscription_items(product_id);
|