Skip to content

Commit 871d773

Browse files
committed
#18 migrate menus
1 parent 3cedf21 commit 871d773

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

src/administrator/components/com_ccm/src/Controller/MigrationController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function apply()
2828
['source' => 'tags', 'target' => 'tags'],
2929
['source' => 'media', 'target' => 'media'],
3030
['source' => 'posts', 'target' => 'articles'],
31+
['source' => 'menus', 'target' => 'menus']
3132
];
3233

3334
$successfulMigrations = [];

src/administrator/components/com_ccm/src/Schema/joomla-ccm.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,22 @@
218218
"default": 1
219219
}
220220
}
221+
},
222+
{
223+
"type": "menus",
224+
"config": {
225+
"endpoint": "menus/site"
226+
},
227+
"properties": {
228+
"id": "id",
229+
"title": "title",
230+
"description": "description",
231+
"client_id": {
232+
"ccm": "client_id",
233+
"default": 0
234+
},
235+
"menutype": "alias"
236+
}
221237
}
222238
]
223239
}

src/administrator/components/com_ccm/src/Schema/wordpress-ccm.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@
112112
"feed_url": null,
113113
"meta": "meta"
114114
}
115+
},
116+
{
117+
"type": "menus",
118+
"properties": {
119+
"ID": "id",
120+
"name": "title",
121+
"slug": "alias",
122+
"description": "description",
123+
"locations": "locations",
124+
"auto_add": "auto_add",
125+
"meta": "meta"
126+
}
115127
}
116128
]
117129
}

0 commit comments

Comments
 (0)