Skip to content

Commit a856dc1

Browse files
Run symfony migrations on db install if in migrations mode
This solves an issue where the migrations might not match the schema exactly, or doctrine/orm isn't being used
1 parent 047c9eb commit a856dc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

symfony/usr/local/share/symfony/symfony_functions.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ do_database_build() {
9797
}
9898

9999
do_database_install() {
100-
do_database_schema_create
101100
if uses_symfony_doctrine_mode_migrations; then
102-
do_database_migrations_mark_done
101+
do_database_migrate
102+
elif uses_symfony_doctrine_mode_schema; then
103+
do_database_schema_create
103104
fi
104105
do_database_fixtures
105106
}

0 commit comments

Comments
 (0)