Sync shared snapshot from a348409
Docker / Docker Build & Push (push) Successful in 2m57s

This commit is contained in:
Gabriel20xx committed 2026-09-23 15:49:52 +02:00
1 parent 775a5520b6
commit 23cdd88e11
4 files changed
+82 -19

No files matched your search

+6
View File
@@ -73,10 +73,16 @@ var migrationStatements = []string{
size_bytes BIGINT,
is_vr BOOLEAN NOT NULL DEFAULT FALSE,
has_funscript BOOLEAN NOT NULL DEFAULT FALSE,
funscript_action_count INT,
funscript_avg_speed REAL,
funscript_max_speed REAL,
speed REAL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
modified_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
)`,
`ALTER TABLE media ADD COLUMN IF NOT EXISTS funscript_action_count INT`,
`ALTER TABLE media ADD COLUMN IF NOT EXISTS funscript_avg_speed REAL`,
`ALTER TABLE media ADD COLUMN IF NOT EXISTS funscript_max_speed REAL`,
`CREATE INDEX IF NOT EXISTS media_active_idx ON media (active)`,
`CREATE INDEX IF NOT EXISTS media_file_path_idx ON media (file_path)`,
`CREATE INDEX IF NOT EXISTS media_search_idx ON media USING GIN (to_tsvector('simple', COALESCE(title, '') || ' ' || COALESCE(original_filename, '') || ' ' || COALESCE(file_path, '')))`,