@zodic/shared 0.0.22 → 0.0.23

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,18 @@
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_astro_features` (
3
+ `id` text PRIMARY KEY NOT NULL,
4
+ `user_id` text NOT NULL,
5
+ `feature_type` text NOT NULL,
6
+ `name` text NOT NULL,
7
+ `description` text,
8
+ `percentage` real,
9
+ `order` integer,
10
+ `prominent_id` integer,
11
+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
12
+ );
13
+ --> statement-breakpoint
14
+ INSERT INTO `__new_astro_features`("id", "user_id", "feature_type", "name", "description", "percentage", "order", "prominent_id") SELECT "id", "user_id", "feature_type", "name", "description", "percentage", "order", "prominent_id" FROM `astro_features`;--> statement-breakpoint
15
+ DROP TABLE `astro_features`;--> statement-breakpoint
16
+ ALTER TABLE `__new_astro_features` RENAME TO `astro_features`;--> statement-breakpoint
17
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
18
+ CREATE INDEX `astro_features_user_id_idx` ON `astro_features` (`user_id`);