Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getCreateSequenceSQL example
foreach
(
$schemaDiff
->
getCreatedSchemas
(
)
as
$schema
)
{
$this
->driverConnection->
executeStatement
(
$platform
->
getCreateSchemaSQL
(
$schema
)
)
;
}
}
if
(
$platform
->
supportsSequences
(
)
)
{
foreach
(
$schemaDiff
->
getAlteredSequences
(
)
as
$sequence
)
{
$this
->driverConnection->
executeStatement
(
$platform
->
getAlterSequenceSQL
(
$sequence
)
)
;
}
foreach
(
$schemaDiff
->
getCreatedSequences
(
)
as
$sequence
)
{
$this
->driverConnection->
executeStatement
(
$platform
->
getCreateSequenceSQL
(
$sequence
)
)
;
}
}
foreach
(
$platform
->
getCreateTablesSQL
(
$schemaDiff
->
getCreatedTables
(
)
)
as
$sql
)
{
$this
->driverConnection->
executeStatement
(
$sql
)
;
}
foreach
(
$schemaDiff
->
getAlteredTables
(
)
as
$tableDiff
)
{
foreach
(
$platform
->
getAlterTableSQL
(
$tableDiff
)
as
$sql
)
{
$this
->driverConnection->
executeStatement
(
$sql
)
;
}
}