first working demo

This commit is contained in:
2025-07-22 17:03:36 +02:00
parent f58e9ef5a2
commit b084910dc0
52 changed files with 11455 additions and 138 deletions

View File

@@ -0,0 +1,17 @@
PRAGMA foreign_keys=OFF;--> statement-breakpoint
CREATE TABLE `__new_audio_file` (
`id` text PRIMARY KEY NOT NULL,
`filename` text NOT NULL,
`content_type` text NOT NULL,
`data` blob DEFAULT 'null',
`s3_key` text,
`duration` real,
`file_size` integer,
`created_at` integer NOT NULL
);
--> statement-breakpoint
INSERT INTO `__new_audio_file`("id", "filename", "content_type", "data", "s3_key", "duration", "file_size", "created_at") SELECT "id", "filename", "content_type", "data", "s3_key", "duration", "file_size", "created_at" FROM `audio_file`;--> statement-breakpoint
DROP TABLE `audio_file`;--> statement-breakpoint
ALTER TABLE `__new_audio_file` RENAME TO `audio_file`;--> statement-breakpoint
PRAGMA foreign_keys=ON;--> statement-breakpoint
CREATE UNIQUE INDEX `participant_audio_unique` ON `rating` (`participant_id`,`audio_file_id`);