@zodic/shared 0.0.278 → 0.0.280
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,26 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_concepts_data` (
|
|
3
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
4
|
+
`language` text NOT NULL,
|
|
5
|
+
`concept_slug` text NOT NULL,
|
|
6
|
+
`combination` text NOT NULL,
|
|
7
|
+
`name` text NOT NULL,
|
|
8
|
+
`description` text NOT NULL,
|
|
9
|
+
`content` text DEFAULT '[]' NOT NULL,
|
|
10
|
+
`poem` text DEFAULT '[]' NOT NULL,
|
|
11
|
+
`leonardo_prompt` text,
|
|
12
|
+
`post_images` text DEFAULT '[]',
|
|
13
|
+
`reel_images` text DEFAULT '[]',
|
|
14
|
+
`status` text DEFAULT 'idle',
|
|
15
|
+
`created_at` integer DEFAULT CURRENT_TIMESTAMP,
|
|
16
|
+
`updated_at` integer DEFAULT CURRENT_TIMESTAMP
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
INSERT INTO `__new_concepts_data`("id", "language", "concept_slug", "combination", "name", "description", "content", "poem", "leonardo_prompt", "post_images", "reel_images", "status", "created_at", "updated_at") SELECT "id", "language", "concept_slug", "combination", "name", "description", "content", "poem", "leonardo_prompt", "post_images", "reel_images", "status", "created_at", "updated_at" FROM `concepts_data`;--> statement-breakpoint
|
|
20
|
+
DROP TABLE `concepts_data`;--> statement-breakpoint
|
|
21
|
+
ALTER TABLE `__new_concepts_data` RENAME TO `concepts_data`;--> statement-breakpoint
|
|
22
|
+
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
23
|
+
CREATE INDEX `concepts_data_language_idx` ON `concepts_data` (`language`);--> statement-breakpoint
|
|
24
|
+
CREATE INDEX `concepts_data_concept_slug_idx` ON `concepts_data` (`concept_slug`);--> statement-breakpoint
|
|
25
|
+
CREATE INDEX `concepts_data_combination_idx` ON `concepts_data` (`combination`);--> statement-breakpoint
|
|
26
|
+
CREATE INDEX `concepts_data_name_idx` ON `concepts_data` (`name`);
|