mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 16:48:58 +00:00
the handle should really be the PK
This commit is contained in:
parent
037dd05148
commit
e19abc6a18
1 changed files with 2 additions and 2 deletions
|
@ -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` (
|
||||||
|
|
Loading…
Reference in a new issue