From dab84febebd1f85ac6b825b04319994478ecae2f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 19 Sep 2018 17:43:59 -0400 Subject: [PATCH] Initialize inbox table --- inc/migrations.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/migrations.php b/inc/migrations.php index eea54ce..fe79650 100644 --- a/inc/migrations.php +++ b/inc/migrations.php @@ -117,5 +117,17 @@ function migration_0_0_1() { ENGINE=InnoDB DEFAULT CHARSET=utf8; " ); + $wpdb->query( + " + CREATE TABLE pterotype_inbox ( + id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + actor_id INT UNSIGNED NOT NULL, + activity_id INT UNSIGNED NOT NULL, + FOREIGN KEY inbox_activity_fk(activity_id) + REFERENCES pterotype_activities(id) + ) + ENGINE=InnoDB DEFAULT CHARSET=utf8; + " + ); } ?>