implement permanent storage for profile history

This commit is contained in:
yggverse 2025-03-12 16:16:16 +02:00
parent 7803aa1c44
commit a6107bf1bb
8 changed files with 310 additions and 73 deletions

View file

@ -63,7 +63,8 @@ pub fn init(tx: &Transaction) -> Result<usize> {
`request` TEXT NOT NULL,
`title` TEXT NULL,
FOREIGN KEY (`profile_id`) REFERENCES `profile` (`id`)
FOREIGN KEY (`profile_id`) REFERENCES `profile` (`id`),
UNIQUE (`profile_id`, `request`)
)",
[],
)?)