Skip to content

Commit

Permalink
Add database upgrade step for showcase plugin in setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Nov 17, 2024
1 parent 43cb5f4 commit 595a640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/docker-entrypoint.d/02_setup_dbca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ if [ ! -f /tmp/container_ready ]; then
ckan -c $CKAN_INI pages initdb
fi

if [[ $CKAN__PLUGINS == *"showcase"* ]]; then
ckan -c $CKAN_INI db upgrade -p showcase
fi

if [[ $CKAN__PLUGINS == *"doi"* ]]; then
ckan -c $CKAN_INI doi initdb
fi
Expand Down

0 comments on commit 595a640

Please sign in to comment.