SchemaDiff
public class SchemaDiff
www.doctrine-project.org
Field Summary | |
---|---|
array | |
array(string=>ezcDbSchemaTableDiff) | All changed tables |
array | |
array(string=>ezcDbSchemaTable) | All added tables |
array | |
array | |
array(string=>Table) | All removed tables |
Constructor Summary | |
---|---|
SchemaDiff(array(string=>Table) newTables, array(string=>TableDiff) changedTables, array(string=>bool) removedTables) Constructs an SchemaDiff object. |
Method Summary | |
---|---|
array | toSaveSql(AbstractPlatform platform) The to save sql mode ensures that the following things don't happen:1. |
array | toSql(AbstractPlatform platform) |
public array $changedSequences = array()
public array(string=>ezcDbSchemaTableDiff) $changedTables = array()
All changed tables
public array $newSequences = array()
public array(string=>ezcDbSchemaTable) $newTables = array()
All added tables
public array $orphanedForeignKeys = array()
public array $removedSequences = array()
public array(string=>Table) $removedTables = array()
All removed tables
public SchemaDiff(array(string=>Table) newTables, array(string=>TableDiff) changedTables, array(string=>bool) removedTables)
Constructs an SchemaDiff object.
public array toSaveSql(AbstractPlatform platform)
The to save sql mode ensures that the following things don't happen:
1. Tables are deleted 2. Sequences are deleted 3. Foreign Keys which reference tables that would otherwise be deleted.
This way it is ensured that assets are deleted which might not be relevant to the metadata schema at all.
public array toSql(AbstractPlatform platform)
Schema Diff