egoexpress/docker-known

Updates to SQL schema don't get applied during startup

egoexpress opened this issue · 1 comments

One of the latest Known updates added some SQL changes (see https://github.com/idno/known/blob/master/warmup/schemas/mysql/2019060501.sql).
These changes don't get applied when updating the Known container and starting if afterwards, thus rendering the Known instance unusable.

For now, that changes have to applied by hand in the known_db_1 container.

To fix this, this step has to be incorporated somewhere around here:

mysql -h mysql -u known -p$KNOWN_MYSQL_PASSWORD known \
< /var/www/known/warmup/schemas/mysql/mysql.sql
.

Stale issue message