Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
findMigrations example
if
(
!
$this
->enabled
)
{
throw
ConfigException::
forDisabledMigrations
(
)
;
}
$this
->
ensureTable
(
)
;
if
(
$group
!== null
)
{
$this
->groupFilter =
$group
;
$this
->
setGroup
(
$group
)
;
}
$migrations
=
$this
->
findMigrations
(
)
;
if
(
empty
(
$migrations
)
)
{
return
true;
}
foreach
(
$this
->
getHistory
(
(string)
$group
)
as
$history
)
{
unset
(
$migrations
[
$this
->
getObjectUid
(
$history
)
]
)
;
}
$batch
=
$this
->
getLastBatch
(
)
+ 1;