Initial Commit
This commit is contained in:
parent
f12d7a2aee
commit
2d5f7a8bfd
405 changed files with 29200 additions and 1 deletions
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
id: migrate_drupal_7_geo
|
||||
label: 'Import from Drupal 7'
|
||||
description: 'Migrate from the D7 version of the site'
|
||||
source_type: 'Drupal 7'
|
||||
shared_configuration:
|
||||
source:
|
||||
key: drupal7
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- geo_upgrade
|
8
web/modules/custom/geo_upgrade/geo_upgrade.info.yml
Normal file
8
web/modules/custom/geo_upgrade/geo_upgrade.info.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
name: Geo Upgrade
|
||||
type: module
|
||||
description: Customization of Drupal 7 to Drupal 8 upgrade migration.
|
||||
core: 8.x
|
||||
package: Migration
|
||||
dependencies:
|
||||
- migrate_drupal
|
||||
- migrate_plus
|
|
@ -0,0 +1,61 @@
|
|||
id: upgrade_d7_file
|
||||
langcode: en
|
||||
migration_group: migrate_drupal_7_geo
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- Content
|
||||
label: 'Geo Public files'
|
||||
source:
|
||||
plugin: d7_file
|
||||
scheme: public
|
||||
constants:
|
||||
source_base_path: '/var/www/html/d7/'
|
||||
process:
|
||||
fid:
|
||||
-
|
||||
plugin: get
|
||||
source: fid
|
||||
filename:
|
||||
-
|
||||
plugin: get
|
||||
source: filename
|
||||
source_full_path:
|
||||
-
|
||||
plugin: concat
|
||||
delimiter: /
|
||||
source:
|
||||
- constants/source_base_path
|
||||
- filepath
|
||||
-
|
||||
plugin: urlencode
|
||||
uri:
|
||||
-
|
||||
plugin: file_copy
|
||||
source:
|
||||
- '@source_full_path'
|
||||
- uri
|
||||
filemime:
|
||||
-
|
||||
plugin: get
|
||||
source: filemime
|
||||
status:
|
||||
-
|
||||
plugin: get
|
||||
source: status
|
||||
created:
|
||||
-
|
||||
plugin: get
|
||||
source: timestamp
|
||||
changed:
|
||||
-
|
||||
plugin: get
|
||||
source: timestamp
|
||||
uid:
|
||||
-
|
||||
plugin: get
|
||||
source: uid
|
||||
destination:
|
||||
plugin: 'entity:file'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
|
@ -0,0 +1,90 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: upgrade_d7_user
|
||||
class: Drupal\user\Plugin\migrate\User
|
||||
field_plugin_method: alterFieldInstanceMigration
|
||||
cck_plugin_method: null
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- Content
|
||||
migration_group: migrate_drupal_7_geo
|
||||
label: 'User accounts'
|
||||
source:
|
||||
plugin: d7_user
|
||||
process:
|
||||
uid:
|
||||
-
|
||||
plugin: get
|
||||
source: uid
|
||||
name:
|
||||
-
|
||||
plugin: get
|
||||
source: name
|
||||
pass:
|
||||
-
|
||||
plugin: get
|
||||
source: pass
|
||||
mail:
|
||||
-
|
||||
plugin: get
|
||||
source: mail
|
||||
created:
|
||||
-
|
||||
plugin: get
|
||||
source: created
|
||||
access:
|
||||
-
|
||||
plugin: get
|
||||
source: access
|
||||
login:
|
||||
-
|
||||
plugin: get
|
||||
source: login
|
||||
status:
|
||||
-
|
||||
plugin: get
|
||||
source: status
|
||||
timezone:
|
||||
-
|
||||
plugin: get
|
||||
source: timezone
|
||||
langcode:
|
||||
-
|
||||
plugin: user_langcode
|
||||
source: entity_language
|
||||
fallback_to_site_default: false
|
||||
preferred_langcode:
|
||||
-
|
||||
plugin: user_langcode
|
||||
source: language
|
||||
fallback_to_site_default: true
|
||||
preferred_admin_langcode:
|
||||
-
|
||||
plugin: user_langcode
|
||||
source: language
|
||||
fallback_to_site_default: true
|
||||
init:
|
||||
-
|
||||
plugin: get
|
||||
source: init
|
||||
roles:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: upgrade_d7_user_role
|
||||
source: roles
|
||||
field_user_picture:
|
||||
-
|
||||
plugin: default_value
|
||||
source: picture
|
||||
default_value: null
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: upgrade_d7_file
|
||||
destination:
|
||||
plugin: 'entity:user'
|
||||
migration_dependencies:
|
||||
required:
|
||||
- upgrade_d7_user_role
|
||||
optional:
|
||||
- upgrade_d7_file
|
|
@ -0,0 +1,54 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: upgrade_d7_user_role
|
||||
class: Drupal\migrate\Plugin\Migration
|
||||
field_plugin_method: null
|
||||
cck_plugin_method: null
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- Configuration
|
||||
migration_group: migrate_drupal_7_geo
|
||||
label: 'User roles'
|
||||
source:
|
||||
plugin: d7_user_role
|
||||
process:
|
||||
id:
|
||||
-
|
||||
plugin: machine_name
|
||||
source: name
|
||||
-
|
||||
plugin: user_update_8002
|
||||
label:
|
||||
-
|
||||
plugin: get
|
||||
source: name
|
||||
permissions:
|
||||
-
|
||||
plugin: static_map
|
||||
source: permissions
|
||||
bypass: true
|
||||
map:
|
||||
'use PHP for block visibility': 'use PHP for settings'
|
||||
'administer site-wide contact form': 'administer contact forms'
|
||||
'post comments without approval': 'skip comment approval'
|
||||
'edit own blog entries': 'edit own blog content'
|
||||
'edit any blog entry': 'edit any blog content'
|
||||
'delete own blog entries': 'delete own blog content'
|
||||
'delete any blog entry': 'delete any blog content'
|
||||
'create forum topics': 'create forum content'
|
||||
'delete any forum topic': 'delete any forum content'
|
||||
'delete own forum topics': 'delete own forum content'
|
||||
'edit any forum topic': 'edit any forum content'
|
||||
'edit own forum topics': 'edit own forum content'
|
||||
-
|
||||
plugin: flatten
|
||||
weight:
|
||||
-
|
||||
plugin: get
|
||||
source: weight
|
||||
destination:
|
||||
plugin: 'entity:user_role'
|
||||
migration_dependencies:
|
||||
optional: { }
|
||||
required: { }
|
4
web/sites/all/drush/.gitignore
vendored
Normal file
4
web/sites/all/drush/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ddev-generated: Automatically generated ddev .gitignore.
|
||||
# You can remove the above line if you want to edit and maintain this file yourself.
|
||||
|
||||
/drush.yml
|
5
web/sites/default/.gitignore
vendored
Normal file
5
web/sites/default/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#ddev-generated: Automatically generated ddev .gitignore.
|
||||
# You can remove the above line if you want to edit and maintain this file yourself.
|
||||
|
||||
/settings.ddev.php
|
||||
/drushrc.php
|
6
web/sites/default/settings.php
Normal file
6
web/sites/default/settings.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
// #ddev-generated: Automatically generated Drupal settings file.
|
||||
if (file_exists($app_root . '/' . $site_path . '/settings.ddev.php')) {
|
||||
include $app_root . '/' . $site_path . '/settings.ddev.php';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue