From e19abc6a1818eb0cde02a4bdaa232b289362959c Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 00:08:58 +1000 Subject: [PATCH] the handle should really be the PK --- setup.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sql b/setup.sql index a39ed3d..55b38e2 100644 --- a/setup.sql +++ b/setup.sql @@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS `credentials` ( `secret` VARCHAR(128) NOT NULL ); CREATE TABLE IF NOT EXISTS `fedi_account` ( - `handle` VARCHAR(128) NOT NULL, - `outbox` VARCHAR(256) PRIMARY KEY, + `handle` VARCHAR(128) NOT NULL PRIMARY KEY, + `outbox` VARCHAR(256), FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `posts` (