- Add support for dynamic user profile rendering - Modify user schema to make email field optional - Update database migrations with new migration script - Refactor profile-related hooks and components to support flexible user viewing - Extract EntryReadHistory component from EntryTitle Signed-off-by: Innei <tukon479@gmail.com>
14 lines
533 B
SQL
14 lines
533 B
SQL
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
CREATE TABLE `__new_users` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`email` text,
|
|
`handle` text,
|
|
`name` text,
|
|
`image` text,
|
|
`is_me` integer NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
INSERT INTO `__new_users`("id", "email", "handle", "name", "image", "is_me") SELECT "id", "email", "handle", "name", "image", "is_me" FROM `users`;--> statement-breakpoint
|
|
DROP TABLE `users`;--> statement-breakpoint
|
|
ALTER TABLE `__new_users` RENAME TO `users`;--> statement-breakpoint
|
|
PRAGMA foreign_keys=ON; |