rvr-nextgen/database/migrations/structure/20230528_1658_events_transactions.sql
Pőcze Bence d2bb1d4936
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
fix sql statement for table transactions
2023-05-28 17:01:19 +02:00

5 lines
211 B
SQL

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`);