summaryrefslogtreecommitdiffstats
path: root/config/migrate-scripts/migrate-db-3646395.sh
blob: b6efe2397051be7d5ddeacc4278d9532dd515afa (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" < config/sql/session_ids.sql
psql "$POSTGRES_DB" "$POSTGRES_USER" -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
psql "$POSTGRES_DB" "$POSTGRES_USER" -c "ALTER TABLE users DROP COLUMN id"
98d5a798db8cd0e4edb9808ebe3d4494e3fa6f&follow=1'>add libreddit instancegit-bruh 2021-07-14removing invidious.fdn.frEmilien Devos 2021-07-12cleanupKotuklion 2021-07-12better GET processingKotuklion 2021-07-12check host instead of the whole href for occurence of wikipedia.orgKotuklion 2021-07-12left some unnecessary spaces here and thereKotuklion 2021-07-12fix minor typosKotuklion 2021-07-12add Wikiless supportKotuklion 2021-07-11Italian translation fixunbranched 2021-07-10Add redirect for Norwegian Google TranslateTim Hårek Andreassen 2021-07-10Bump version & update dependencies.v1.1.48SimonBrazell 2021-07-10Closes #242: remove "new" tag from SimplyTranslate.SimonBrazell 2021-06-16Fixes #238SimonBrazell 2021-06-16Redirect Twitter "video" subdomain & update dev dependencies.SimonBrazell 2021-06-16Fixed license linkGaurang Tandon 2021-06-16Added reddit.artemislena.euFantasyCookie17 2021-06-12Only append autoplay parameter if necessarybopol