refactor: migration from sqlite to postgres with migration script (#483)

This commit is contained in:
2025-07-16 19:38:33 -06:00
committed by GitHub
parent b05fc9c36a
commit 4d21fd1754
5 changed files with 68 additions and 1 deletions

16
server/migration.load Normal file
View File

@@ -0,0 +1,16 @@
LOAD DATABASE
FROM sqlite:///app/reflector.sqlite3
INTO pgsql://reflector:reflector@postgres:5432/reflector
WITH
include drop,
create tables,
create indexes,
reset sequences,
preserve index names,
prefetch rows = 10
SET
work_mem to '512MB',
maintenance_work_mem to '1024MB'
CAST
column transcript.duration to float using (lambda (val) (when val (format nil "~f" val)))
;