not working - add PROXY to stream hosts. migration and db fix script

This commit is contained in:
baudneo
2022-10-10 16:48:31 -06:00
parent 5970b74321
commit a9ca9527d8
6 changed files with 91 additions and 145 deletions

10
scripts/npm_db_fix Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
log() {
echo -e "[$(basename "$0")]> $*"
}
log "Executing SQL migration fixes"
mysql -u root -p"${MYSQL_ROOT_PASSWORD}" -D "${MYSQL_DATABASE}" -e "DELETE from migrations where name = '20220209144645_proxy_protocol.js';"
mysql -u root -p"${MYSQL_ROOT_PASSWORD}" -D "${MYSQL_DATABASE}" -e "DELETE from migrations where name = '22021009153423_proxy_protocol.js';"
mysql -u root -p"${MYSQL_ROOT_PASSWORD}" -D "${MYSQL_DATABASE}" -e "DELETE from migrations where name = '22021010135303_stream_proxy_protocol.js';"
mysql -u root -p"${MYSQL_ROOT_PASSWORD}" -D "${MYSQL_DATABASE}" -e "DELETE from migrations where name = '22021010135304_stream_proxy_protocol.js';"
mysql -u root -p"${MYSQL_ROOT_PASSWORD}" -D "${MYSQL_DATABASE}" -e "DELETE from migrations where name = '20221010135304_stream_proxy_protocol.js';"