mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 15:51:13 -05:00
Refactor: Approve test data generator tool use
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- Add submission_item_id to test_data_registry for proper dependency tracking
|
||||
ALTER TABLE test_data_registry
|
||||
ADD COLUMN IF NOT EXISTS submission_item_id UUID REFERENCES submission_items(id) ON DELETE CASCADE;
|
||||
|
||||
-- Add index for fast lookups
|
||||
CREATE INDEX IF NOT EXISTS idx_test_data_registry_item_id
|
||||
ON test_data_registry(submission_item_id);
|
||||
|
||||
-- Update existing records to have NULL submission_item_id (for backwards compatibility)
|
||||
-- New records will populate this field
|
||||
Reference in New Issue
Block a user