Files
Folo/apps/mobile/drizzle/0013_chunky_stephen_strange.sql
T
Innei 42c1f9f191 feat(mobile): Enhance user profile and database schema
- 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>
2025-03-04 00:09:23 +08:00

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;