Skip to content

Commit

Permalink
Add motty data import
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Nov 14, 2024
1 parent 36afd36 commit bd94d62
Show file tree
Hide file tree
Showing 37 changed files with 8,582 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/settings/settings.local.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@

require_once DRUPAL_ROOT . '/sites/example.settings.local.php';

$databases['migrate']['default'] = array (
$databases['migrate']['default'] = [
'database' => 'loyalist',
'username' => 'root',
'password' => 'import',
'host' => 'mysqlimport',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
];

$databases['migratemotty']['default'] = [
'database' => 'motty',
'username' => 'root',
'password' => 'import',
'host' => 'mottyimport',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: e5203ea4-9969-40de-950e-a82c592de7a6
langcode: en
status: true
dependencies:
config:
- node.type.motty_record_entry
id: node.motty_record_entry.title
field_name: title
entity_type: node
bundle: motty_record_entry
label: Entry
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
uuid: 6f121f10-f437-44b4-a853-b8533ccbc03d
langcode: en
status: true
dependencies:
config:
- field.field.node.motty_record_entry.field_motty_details
- field.field.node.motty_record_entry.field_motty_event_date
- field.field.node.motty_record_entry.field_motty_event_location
- field.field.node.motty_record_entry.field_motty_event_type
- field.field.node.motty_record_entry.field_motty_first_name
- field.field.node.motty_record_entry.field_motty_last_name
- field.field.node.motty_record_entry.field_motty_notes
- field.field.node.motty_record_entry.field_motty_sex
- field.field.node.motty_record_entry.field_motty_sort_name
- node.type.motty_record_entry
module:
- datetime
- path
id: node.motty_record_entry.default
targetEntityType: node
bundle: motty_record_entry
mode: default
content:
created:
type: datetime_timestamp
weight: 3
region: content
settings: { }
third_party_settings: { }
field_motty_details:
type: string_textarea
weight: 18
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_motty_event_date:
type: datetime_default
weight: 10
region: content
settings: { }
third_party_settings: { }
field_motty_event_location:
type: entity_reference_autocomplete
weight: 12
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_motty_event_type:
type: entity_reference_autocomplete
weight: 11
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_motty_first_name:
type: string_textfield
weight: 13
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_motty_last_name:
type: string_textfield
weight: 14
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_motty_notes:
type: string_textarea
weight: 17
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_motty_sex:
type: string_textfield
weight: 16
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_motty_sort_name:
type: string_textfield
weight: 15
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 1
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 7
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
simple_sitemap:
weight: 4
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 9
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 2
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 8
region: content
settings: { }
third_party_settings: { }
hidden:
publish_on: true
unpublish_on: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
uuid: 7955adb3-9d57-425d-be9f-6bf0b442e309
langcode: en
status: true
dependencies:
config:
- taxonomy.vocabulary.motty_event_types
module:
- path
- text
id: taxonomy_term.motty_event_types.default
targetEntityType: taxonomy_term
bundle: motty_event_types
mode: default
content:
description:
type: text_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
publish_on: true
unpublish_on: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
uuid: 220af421-4eee-49d3-bd42-9cafeaa94cca
langcode: en
status: true
dependencies:
config:
- taxonomy.vocabulary.motty_locations
module:
- path
- text
id: taxonomy_term.motty_locations.default
targetEntityType: taxonomy_term
bundle: motty_locations
mode: default
content:
description:
type: text_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
publish_on: true
unpublish_on: true
Loading

0 comments on commit bd94d62

Please sign in to comment.