rvr-nextgen/database/migrations/structure/20230528_1658_events_transactions.sql

5 lines
211 B
MySQL
Raw Normal View History

ALTER TABLE `transactions`
ADD `event_id` int(10) unsigned NULL AFTER `community_id`,
ADD KEY `event_id` (`event_id`),
ADD CONSTRAINT `transactions_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`);