to set DB_PREFIX empty i use this in docker-compose.yml
environment:
- "DB_PREFIX=${DB_PREFIX}"
without defining DB_PREFIX first (not in .env e.g.) - which is kind of a hack to set an empty string.
docker "sucessfully" returns :
WARNING: The DB_PREFIX variable is not set. Defaulting to a blank string.
but still :
PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'flarum.flarum_settings' doesn't exist in /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:82
I guess if the DBPREFIX var is empty, docker-flarum will replace it by default flarum ?
to set DB_PREFIX empty i use this in docker-compose.yml
without defining DB_PREFIX first (not in .env e.g.) - which is kind of a hack to set an empty string.
docker "sucessfully" returns :
WARNING: The DB_PREFIX variable is not set. Defaulting to a blank string.
but still :
PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'flarum.flarum_settings' doesn't exist in /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:82
I guess if the DBPREFIX var is empty, docker-flarum will replace it by default flarum ?