mirror of
				https://git.tt-rss.org/fox/ttrss-docker-compose
				synced 2025-11-04 09:34:13 +01:00 
			
		
		
		
	remove manual loading of base database schema
This commit is contained in:
		
							parent
							
								
									c6693fc4dd
								
							
						
					
					
						commit
						543dc555e4
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue