File tree Expand file tree Collapse file tree 3 files changed +3
-45
lines changed
Expand file tree Collapse file tree 3 files changed +3
-45
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments