Skip to content

Commit 5d008ef

Browse files
committed
remove obsolete clean-user-data script and edit backend entrypoint issue on production environment
1 parent 1f1a604 commit 5d008ef

File tree

3 files changed

+3
-45
lines changed

3 files changed

+3
-45
lines changed

clean-user-data.ps1

Lines changed: 0 additions & 14 deletions
This file was deleted.

clean-user-data.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

config/docker-config/backend-entrypoint.sh

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,9 @@ setup_symfony() {
4848
echo "Dropping existing schema..."
4949
php /var/www/html/bin/console doctrine:schema:drop --force --full-database || true
5050
51-
echo "Cleaning old migrations..."
52-
rm -rf /var/www/html/migrations/*.php
53-
54-
echo "Creating new migration..."
55-
if ! php /var/www/html/bin/console make:migration -n; then
56-
echo "ERROR: Failed to create migration"
57-
exit 1
58-
fi
59-
60-
if [ -z "$(ls -A /var/www/html/migrations/)" ]; then
61-
echo "ERROR: No migration file was created"
62-
exit 1
63-
fi
64-
65-
echo "Applying migrations..."
66-
if ! php /var/www/html/bin/console doctrine:migrations:migrate -n; then
67-
echo "ERROR: Failed to apply migrations"
51+
echo "Creating database schema..."
52+
if ! php /var/www/html/bin/console doctrine:schema:create; then
53+
echo "ERROR: Failed to create database schema"
6854
exit 1
6955
fi
7056

0 commit comments

Comments
 (0)