summaryrefslogtreecommitdiffstats
path: root/config/migrate-scripts/migrate-db-8e884fe.sh
blob: 0d5de828a6e0f0e0401783882af3b6c96ca45779 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

[ -z "$POSTGRES_USER" ] && POSTGRES_USER=kemal
[ -z "$POSTGRES_DB" ] && POSTGRES_DB=invidious

psql "$POSTGRES_DB" "$POSTGRES_USER" -c "ALTER TABLE channels DROP COLUMN subscribed"
psql "$POSTGRES_DB" "$POSTGRES_USER" -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
psql "$POSTGRES_DB" "$POSTGRES_USER" -c "UPDATE channels SET subscribed = '2019-01-01 00:00:00+00'"
lper` is not ↵syeopite configured (#5202) * Warn when required configs for playback is missing * Add link to documentation in warnings * Direct users to /installation instead 2025-02-26Fix lint and formattingsyeopite 2025-02-26i18n: Enable Tamilsyeopite 2025-02-21Fix an issue with the HLS manifest check for livestream videosAlex Maras Originally, the HLS manifest check was essentially a boolean: if the HLS manifest field was present, it was assumed to be a livestream. Some videos include the HLS Manifest but aren't livestreams. In the case where they are livestreams, the video contains a videoType field with the value "Livestream". In the case that they're normal videos, the videoType is "Video". This is exposed via the video.live_now method. This commit just checks that video.live_now is true before treating it as a livestream 2025-02-18Typosyeopite Co-authored-by: Samantaz Fox <coding@samantaz.fr> 2025-02-18Channels: Fix community tabFijxu 2025-01-28Use Crystal compiler cache in docker buildssyeopite 2025-01-28fix 5161 by checking recommended videos published field for presence instead ↵Drikanis of just not nil 2025-01-26remove ! on rejectepicsam123 2025-01-25Add Courses to channel page and channel APIChunkyProgrammer