mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-22 00:13:09 +08:00
This commit renames the data migration files for clarity, changing `dataMigrate.html` to `dataRefactorMigrate.html` and updating the corresponding service imports. It also enhances the migration logic by implementing a new `app_state` table structure and removing deprecated migration files, streamlining the overall migration process.
17 lines
403 B
SQL
17 lines
403 B
SQL
CREATE TABLE `app_state` (
|
|
`key` text PRIMARY KEY NOT NULL,
|
|
`value` text NOT NULL,
|
|
`description` text,
|
|
`created_at` integer,
|
|
`updated_at` integer
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `preference` (
|
|
`scope` text NOT NULL,
|
|
`key` text NOT NULL,
|
|
`value` text,
|
|
`created_at` integer,
|
|
`updated_at` integer
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX `scope_name_idx` ON `preference` (`scope`,`key`); |