Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeNodeMigrateMapTable example
protected
$nodeStorage
;
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
// Remove the classic node table made in setup.
$this
->
removeNodeMigrateMapTable
(
NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '7'
)
;
$this
->
fileMigrationSetup
(
)
;
$this
->
installEntitySchema
(
'comment'
)
;
$this
->
installEntitySchema
(
'taxonomy_term'
)
;
$this
->
installSchema
(
'comment',
[
'comment_entity_statistics'
]
)
;
$this
->
installSchema
(
'node',
[
'node_access'
]
)
;
$this
->
installSchema
(
'system',
[
'sequences'
]
)
;
$this
->
createContent
(
)
;
'menu_ui',
'taxonomy',
]
;
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
// Remove the classic node table made in setup.
$this
->
removeNodeMigrateMapTable
(
NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '6'
)
;
$this
->
installSchema
(
'node',
[
'node_access'
]
)
;
$this
->
installEntitySchema
(
'node'
)
;
$this
->
executeMigration
(
'language'
)
;
$this
->
migrateUsers
(
FALSE
)
;
$this
->
migrateFields
(
)
;
$this
->
executeMigrations
(
[
'd6_node_settings', 'd6_node_complete'
]
)
;
$this
->
migrateTaxonomy
(
)
;
// This is a base plugin ID and we want to run all derivatives.
$this
->
executeMigrations
(
[
'd6_term_node'
]
)
;
}