fix(migrations): ensure safe migration steps for doctor_expertise and doctor_cities, drop legacy tables conditionally

This commit is contained in:
hamed
2026-06-28 09:32:27 +03:30
parent e966e11807
commit 90a908c503
3 changed files with 83 additions and 16 deletions
+4
View File
@@ -57,6 +57,10 @@ COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh \
&& mkdir -p var/cache var/log var/uploads public/uploads config/jwt \
# Source may be copied with restrictive (0600) host perms; ensure the runtime
# user (www-data) can read all app files — opcache preload runs as www-data
# and otherwise fails with "Permission denied" on /app/config/preload.php.
&& chmod -R a+rX /app \
&& chown -R www-data:www-data var public/uploads config/jwt
EXPOSE 80