mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-28 15:51:29 +08:00
0550e41868
Replace opt-in profile listings with an opt-out private flag and a unified privacy endpoint. BREAKING CHANGE: showOnProfile, listedAt, and the profile-listing endpoints are replaced by private and PUT /api/shares/:token/privacy.
4 lines
325 B
SQL
4 lines
325 B
SQL
DROP INDEX `shares_creator_listed_idx`;--> statement-breakpoint
|
|
ALTER TABLE `shares` ADD `private` integer DEFAULT false NOT NULL;--> statement-breakpoint
|
|
CREATE INDEX `shares_creator_private_created_idx` ON `shares` (`creator_id`,`private`,`created_at`);--> statement-breakpoint
|
|
ALTER TABLE `shares` DROP COLUMN `listed_at`; |