Drupal 8 zu Drupal 9 Migration: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Haas (Diskussion | Beiträge) |
||
| Zeile 38: | Zeile 38: | ||
==Alle== | ==Alle== | ||
composer.json Webroot für Scaffolding: | composer.json Webroot für Scaffolding: | ||
''"conflict": {'' bis '' | |||
"web/modules/contrib/webform/composer.libraries.json" | |||
] | |||
} | |||
}'' | |||
alle Line Code '''ersetzten''' | |||
<syntaxhighlight line='line' lang="bash"> | <syntaxhighlight line='line' lang="bash"> | ||
"conflict": { | |||
"drupal/drupal": "*" | |||
}, | |||
"minimum-stability": "dev", | |||
"prefer-stable": true, | |||
"config": { | |||
"sort-packages": true | |||
}, | |||
"extra": { | |||
"enable-patching": true, | |||
"patches-file": "patches/composer.json", | |||
"drupal-scaffold": { | "drupal-scaffold": { | ||
"locations": { | "locations": { | ||
"web-root": "web/" | "web-root": "web/" | ||
}, | } | ||
}, | |||
"installer-paths": { | |||
"web/core": [ | |||
"type:drupal-core" | |||
], | |||
"web/libraries/{$name}": [ | |||
"type:drupal-library" | |||
], | |||
"web/modules/contrib/{$name}": [ | |||
"type:drupal-module" | |||
], | |||
"web/profiles/contrib/{$name}": [ | |||
"type:drupal-profile" | |||
], | |||
"web/themes/contrib/{$name}": [ | |||
"type:drupal-theme" | |||
], | |||
"drush/Commands/contrib/{$name}": [ | |||
"type:drupal-drush" | |||
], | |||
"web/modules/custom/{$name}": [ | |||
"type:drupal-custom-module" | |||
], | |||
"web/themes/custom/{$name}": [ | |||
"type:drupal-custom-theme" | |||
] | |||
}, | |||
"drupal-core-project-message": { | |||
"include-keys": [ | |||
"homepage", | |||
"support" | |||
], | |||
"post-create-project-cmd-message": [ | |||
"<bg=blue;fg=white> </>", | |||
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>", | |||
"<bg=blue;fg=white> from the drupal/recommended-project template! </>", | |||
"<bg=blue;fg=white> </>", | |||
"", | |||
"<bg=yellow;fg=black>Next steps</>:", | |||
" * Install the site: https://www.drupal.org/docs/8/install", | |||
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", | |||
" * Get support: https://www.drupal.org/support", | |||
" * Get involved with the Drupal community:", | |||
" https://www.drupal.org/getting-involved", | |||
" * Remove the plugin that prints this message:", | |||
" composer remove drupal/core-project-message" | |||
] | |||
}, | |||
"merge-plugin": { | |||
"include": [ | |||
"web/modules/contrib/webform/composer.libraries.json" | |||
] | |||
} | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Version vom 23. Februar 2022, 09:53 Uhr
Grundlage
- Scriptpfad
~/_scripts/d9_upgrade - Script Start
./d9_upgrade.sh PROJEKTNAME
Migration Vorbereite
- Die Webseite vorab Auf den neusten Stand bringen $lokal
composer update -W - DB Update $lokal
drush updb - Synchronisieren $local
sync PROJETNAME
Mögliche updates die manuell gemacht werden müssen:
composer require 'drupal/linkit:^6.0@beta'
composer require 'drupal/field_formatter_filter:^2.0'
composer require 'drupal/backup_migrate:^5.0'
composer require 'drupal/db_maintenance:^2.0'
composer require 'drupal/single_datetime:1.x-dev@dev'
composer require 'drupal/computed_field:^3.0@alpha'
composer require 'drupal/crop:^2.1'
composer require 'drupal/field_group:^3.2'
composer require 'drupal/responsive_menu:^4.4'
wenn devel nicht aktuell ist:
zuerst kint deinstallieren
drush pm:uninstall kint
composer remove drupal/kint --no-update
composer require kint-php/kint
composer require 'drupal/devel:^4.1'
Nur EGW
composer require 'drupal/linkit:^6.0@beta' 'drupal/field_formatter_filter:^2.0' 'drupal/single_datetime:1.x-dev@dev' 'drupal/computed_field:^3.0@alpha'
composer rem drupal/date_range_picker
Alle
composer.json Webroot für Scaffolding: "conflict": { bis
"web/modules/contrib/webform/composer.libraries.json"
]
}
}
alle Line Code ersetzten
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true
},
"extra": {
"enable-patching": true,
"patches-file": "patches/composer.json",
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
]
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/8/install",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
" * Get involved with the Drupal community:",
" https://www.drupal.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
},
"merge-plugin": {
"include": [
"web/modules/contrib/webform/composer.libraries.json"
]
}
}
composer config extra.enable-patching true
composer config extra.patches-file "https://raw.githubusercontent.com/szeberli/ct_composer-patches/main/composer.patches.json"
D9 Lokal nach fertiggestelltem Upgrade
drush sql-dump > DB/DB_D9.sql
drush cex -y
git add .
git commit -m "D9 Upgrade lokal abgeschlossen"
git push origin master
Online -> Ordner löschen
web/core/vendorweb/core/modules/web/themes/contrib/
Ausser EGW
D9 Lokal
sync projektname
Online
drush updb -y
drush theme:enable gin
en -y gin_toolbar
drush cim
drush cr
drush locale:check && drush locale:update
Nur für EGW
composer require 'drupal/computed_field:^3.0@alpha'
composer require 'drupal/field_formatter_filter:^2.0'
composer require 'drupal/linkit:^6.0@beta'
composer require 'drupal/single_datetime:^1.8@beta'
verteilen
drush pmu -y configuration_import
Module Löschen default_config
drush pmu -y default_config
Nur EGW Module Kopieren: egw_default_config
drush en -y egw_default_config
alle
zeberliedvdefaults -> Löschen
Online
drush pmu -y me_redirect
Pre resync
$live chmod -R 755 web/modules/custom/