Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
belgian_postal_code
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
belgian_postal_code
Commits
88a16a40
Commit
88a16a40
authored
3 years ago
by
bdriesen
Committed by
Bram Driesen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3277640
by BramDriesen: Create migration for the sub municipalities
parent
174b0e3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
migrations/belgian_postal_code_main_municipalities.yml
+4
-0
4 additions, 0 deletions
migrations/belgian_postal_code_main_municipalities.yml
migrations/belgian_postal_code_sub_municipalities.yml
+39
-0
39 additions, 0 deletions
migrations/belgian_postal_code_sub_municipalities.yml
with
43 additions
and
0 deletions
migrations/belgian_postal_code_main_municipalities.yml
+
4
−
0
View file @
88a16a40
...
...
@@ -15,12 +15,16 @@ source:
-
"
Deelgemeente"
-
"
Hoofdgemeente"
-
"
Provincie"
row_index_column
:
"
Row
index"
keys
:
Hoofdgemeente
:
type
:
string
constants
:
MIGRATION_NAME
:
"
belgian_postal_code_main_municipalities"
destination
:
plugin
:
entity:taxonomy_term
default_bundle
:
belgian_postal_code
translations
:
false
process
:
name
:
"
Hoofdgemeente"
weight
:
"
Row
index"
This diff is collapsed.
Click to expand it.
migrations/belgian_postal_code_sub_municipalities.yml
0 → 100644
+
39
−
0
View file @
88a16a40
id
:
belgian_postal_code_sub_municipalities
label
:
"
Import
Belgian
Postal
Code
-
Sub
municipalities"
migration_group
:
Belgian Postal Code
migration_tags
:
-
belgian_postal_code
source
:
plugin
:
spreadsheet
file
:
"
private://import/belgian_postal_codes_nl.xls"
worksheet
:
"
Plaatsnamen
op
postcode"
origin
:
A2
header_row
:
1
columns
:
-
"
Postcode"
-
"
Plaatsnaam"
-
"
Deelgemeente"
-
"
Hoofdgemeente"
-
"
Provincie"
row_index_column
:
"
Row
index"
keys
:
Plaatsnaam
:
type
:
string
constants
:
MIGRATION_NAME
:
"
belgian_postal_code_sub_municipalities"
PARENT_MIGRATION_NAME
:
"
belgian_postal_code_main_municipalities"
destination
:
plugin
:
entity:taxonomy_term
default_bundle
:
belgian_postal_code
translations
:
false
process
:
name
:
"
Plaatsnaam"
field_postal_code
:
"
Postcode"
weight
:
"
Row
index"
parent
:
-
plugin
:
callback
callable
:
belgian_postal_code_destination_mapper
source
:
-
constants/PARENT_MIGRATION_NAME
-
Hoofdgemeente
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment