Skip to content

Commit c099345

Browse files
authored
No setup upgrade but db-schema and db-data upgrade
1 parent f27929b commit c099345

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

recipe/magento_2_2/database.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
});
3131

3232
task('database:upgrade', function () {
33-
get('database_upgrade_needed') ?
34-
run('{{bin/php}} {{release_path}}/{{magento_bin}} setup:upgrade --keep-generated --no-interaction') :
33+
if (get('database_upgrade_needed')) {
34+
run('{{bin/php}} {{release_path}}/{{magento_bin}} setup:db-schema:upgrade --no-interaction');
35+
run('{{bin/php}} {{release_path}}/{{magento_bin}} setup:db-data:upgrade --no-interaction');
36+
} else {
3537
writeln('Skipped -> All Modules are up to date');
38+
}
3639
});

0 commit comments

Comments
 (0)