Lightning Talk DACH User Group
Jürgen Haas - @jurgenhaas
8. April 2021
composer upgrade
and drush updatedb
#!/bin/bash
composer update
drush -y site:install bs_portal
drush -y pm:enable bs_inventory_real_estate bs_dashboard bs_content_node_blog bs_content_node_event bs_content_node_incident bs_content_node_info bs_content_node_internal bs_content_node_page analog_digital_clock block_content block_styles colorbox color_field config_translation contact content_translation digital_signage_framework digital_signage_custom_platform draggableviews endroid_qr_code language helpdesk_zendesk layout_builder_styles locale maxlength mobimo_free_properties opentransportdata_swiss pf_onesignal redirect responsive_favicons readonly_field_widget rest signageos simple_sitemap title wayfinding wayfinding_digital_signage webform bs_shop bs_relocation_calendar
drush -y theme:enable custom_theme
prepare_and_import_config.sh
drush @default.production sql:dump --data-only --result-file=/tmp/data.sql --extra-dump=--complete-insert --tables-key=drupal9
scp livehost:/tmp/data.sql .
prepare_sql.sh
drush sql:query --file=../data.sql
drush @default.production sql:dump --result-file=/tmp/maps.sql --extra-dump=--complete-insert --tables-list="migrate_map_*,migrate_message_*"
scp livehost:/tmp/maps.sql .
sed -i "s/migrate_map_users/migrate_map_bs_user/g" maps.sql
sed -i "s/migrate_message_users/migrate_message_bs_user/g" maps.sql
drush sql:query --file=../maps.sql
drush php:script cleanup --script-path=../config
drush migrate:import --all