fix sql statement for table transactions
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
This commit is contained in:
parent
b8a901b041
commit
d2bb1d4936
@ -11,8 +11,3 @@ CREATE TABLE `events` (
|
|||||||
UNIQUE KEY `slug` (`slug`),
|
UNIQUE KEY `slug` (`slug`),
|
||||||
CONSTRAINT `events_community_id` FOREIGN KEY (`community_id`) REFERENCES `communities` (`id`)
|
CONSTRAINT `events_community_id` FOREIGN KEY (`community_id`) REFERENCES `communities` (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
||||||
|
|
||||||
ALTER TABLE `transactions`
|
|
||||||
ADD `event_id` int(10) unsigned NULL,
|
|
||||||
ADD KEY `event_id` (`event_id`) AFTER `community_id`,
|
|
||||||
ADD CONSTRAINT `transactions_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`);
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
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`);
|
Loading…
Reference in New Issue
Block a user