@zodic/shared 0.0.32 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_users_temp` (
3
+ `id` text PRIMARY KEY NOT NULL,
4
+ `email` text NOT NULL,
5
+ `name` text NOT NULL,
6
+ `profile_image` text,
7
+ `oauth_provider` text,
8
+ `oauth_provider_id` text,
9
+ `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
10
+ `updated_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL
11
+ );
12
+ --> statement-breakpoint
13
+ INSERT INTO `__new_users_temp`("id", "email", "name", "profile_image", "oauth_provider", "oauth_provider_id", "created_at", "updated_at") SELECT "id", "email", "name", "profile_image", "oauth_provider", "oauth_provider_id", "created_at", "updated_at" FROM `users_temp`;--> statement-breakpoint
14
+ DROP TABLE `users_temp`;--> statement-breakpoint
15
+ ALTER TABLE `__new_users_temp` RENAME TO `users_temp`;--> statement-breakpoint
16
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
17
+ CREATE UNIQUE INDEX `users_temp_email_unique` ON `users_temp` (`email`);--> statement-breakpoint
18
+ CREATE UNIQUE INDEX `users_temp_oauth_provider_id_unique` ON `users_temp` (`oauth_provider_id`);--> statement-breakpoint
19
+ CREATE INDEX `users_temp_email_idx` ON `users_temp` (`email`);