Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeMigration example
$migration
->
down
(
$keepUserData
)
;
foreach
(
$migration
->
getSql
(
)
as
$sql
)
{
$this
->connection->
exec
(
$sql
)
;
}
}
catch
(
Exception
$e
)
{
$this
->
markMigrationAsFailed
(
$migration
,
$e
)
;
throw
new
RuntimeException
(
sprintf
(
'Could not revert migration (%s). Error: %s ', \
get_class
(
$migration
)
,
$e
->
getMessage
(
)
)
)
;
}
$this
->
removeMigration
(
$migration
)
;
}
}