9 lines
437 B
MySQL
9 lines
437 B
MySQL
|
|
-- Migration: Add prepaid_card_id to tmodule_times for integration with Ticket Prepaid Cards
|
||
|
|
-- Date: 2025-02-02
|
||
|
|
-- Description: Allows Solutions/Time Module entries to be linked to prepaid cards (klippekort)
|
||
|
|
|
||
|
|
ALTER TABLE tmodule_times
|
||
|
|
ADD COLUMN IF NOT EXISTS prepaid_card_id INTEGER REFERENCES tticket_prepaid_cards(id) ON DELETE SET NULL;
|
||
|
|
|
||
|
|
CREATE INDEX IF NOT EXISTS idx_tmodule_times_prepaid_card ON tmodule_times(prepaid_card_id);
|