added update image route
This commit is contained in:
10
drizzle/0001_chilly_bullseye.sql
Normal file
10
drizzle/0001_chilly_bullseye.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE `image_to_user` (
|
||||
`user_id` integer PRIMARY KEY NOT NULL,
|
||||
`image_name` text NOT NULL,
|
||||
`created_on` integer DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
DROP TABLE `phone_tokens`;--> statement-breakpoint
|
||||
ALTER TABLE users ADD `image` text;--> statement-breakpoint
|
||||
CREATE INDEX `image_idx` ON `users` (`image`);
|
||||
Reference in New Issue
Block a user