feat(category): save collapse state for signed in users (#2134)
This commit is contained in:
1 parent
5c219a8b59
commit
7cb0aa70f1
18 files changed
+3624
-3
No files matched your search
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE `section_collapse_state` (
|
||||
`user_id` text NOT NULL,
|
||||
`section_id` text NOT NULL,
|
||||
`collapsed` integer DEFAULT false NOT NULL,
|
||||
PRIMARY KEY(`user_id`, `section_id`),
|
||||
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade,
|
||||
FOREIGN KEY (`section_id`) REFERENCES `section`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
Reference in new issue
Block a user