feat: Added RClone integration feat: Implemented plugin settings feat: Updated minimal store version test: Fixed tests feat: Moved store and igdb and es-de to their own plugins
31 lines
No EOL
1.5 KiB
SQL
31 lines
No EOL
1.5 KiB
SQL
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
CREATE TABLE `__new_games` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`source_id` text,
|
|
`source` text,
|
|
`igdb_id` integer,
|
|
`name` text,
|
|
`ra_id` integer,
|
|
`path_fs` text,
|
|
`main_glob` text,
|
|
`last_played` integer,
|
|
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
|
|
`metadata` text DEFAULT '{}' NOT NULL,
|
|
`slug` text,
|
|
`platform_id` integer NOT NULL,
|
|
`cover` blob,
|
|
`type` text,
|
|
`summary` text,
|
|
`version` text,
|
|
`version_source` text,
|
|
`version_system` text,
|
|
FOREIGN KEY (`platform_id`) REFERENCES `platforms`(`id`) ON UPDATE cascade ON DELETE no action
|
|
);
|
|
--> statement-breakpoint
|
|
INSERT INTO `__new_games`("id", "source_id", "source", "igdb_id", "name", "ra_id", "path_fs", "main_glob", "last_played", "created_at", "metadata", "slug", "platform_id", "cover", "type", "summary", "version", "version_source", "version_system") SELECT "id", "source_id", "source", "igdb_id", "name", "ra_id", "path_fs", "main_glob", "last_played", "created_at", "metadata", "slug", "platform_id", "cover", "type", "summary", "version", "version_source", "version_system" FROM `games`;--> statement-breakpoint
|
|
DROP TABLE `games`;--> statement-breakpoint
|
|
ALTER TABLE `__new_games` RENAME TO `games`;--> statement-breakpoint
|
|
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `games_igdb_id_unique` ON `games` (`igdb_id`);--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `games_ra_id_unique` ON `games` (`ra_id`);--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `games_slug_unique` ON `games` (`slug`); |