From ac9d23368854436daca9c8669512b3526beddc1b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Mar 2021 09:28:32 +0300 Subject: [PATCH] remove manual loading of base database schema --- app/startup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/startup.sh b/app/startup.sh index c869e32..8538188 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -70,9 +70,8 @@ $PSQL -c "create extension if not exists pg_trgm" RESTORE_SCHEMA=${SCRIPT_ROOT}/restore-schema.sql.gz if [ -r $RESTORE_SCHEMA ]; then + $PSQL -c "drop schema public cascade; create schema public;" zcat $RESTORE_SCHEMA | $PSQL -elif ! $PSQL -c 'select * from ttrss_version'; then - $PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql fi # this was previously generated