1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

the handle should really be the PK

This commit is contained in:
Lynne Megido 2019-09-01 00:08:58 +10:00
parent 037dd05148
commit e19abc6a18

View file

@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS `credentials` (
`secret` VARCHAR(128) NOT NULL `secret` VARCHAR(128) NOT NULL
); );
CREATE TABLE IF NOT EXISTS `fedi_account` ( CREATE TABLE IF NOT EXISTS `fedi_account` (
`handle` VARCHAR(128) NOT NULL, `handle` VARCHAR(128) NOT NULL PRIMARY KEY,
`outbox` VARCHAR(256) PRIMARY KEY, `outbox` VARCHAR(256),
FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE
); );
CREATE TABLE IF NOT EXISTS `posts` ( CREATE TABLE IF NOT EXISTS `posts` (