From 543dc555e44077e36b918b3405668dc87671107c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Mar 2021 09:29:34 +0300 Subject: [PATCH] remove manual loading of base database schema --- src/app/startup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/startup.sh b/src/app/startup.sh index af677d8..a5a744b 100755 --- a/src/app/startup.sh +++ b/src/app/startup.sh @@ -62,9 +62,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