Compare commits

..

No commits in common. "e122248a971b96bff4f02d4afcc5b34c37b51f7b" and "b8a901b041456edde23a9a65243712ffdb32308d" have entirely different histories.

2 changed files with 5 additions and 4 deletions

View File

@ -11,3 +11,8 @@ CREATE TABLE `events` (
UNIQUE KEY `slug` (`slug`),
CONSTRAINT `events_community_id` FOREIGN KEY (`community_id`) REFERENCES `communities` (`id`)
) 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`);

View File

@ -1,4 +0,0 @@
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`);