45 $this->schemaArray = array();
79 $this->schemaArray[
'tables'][$table->getName()][
'options'] = $table->getOptions();
92 $this->schemaArray[
'tables'][$table->getName()][
'columns'][$column->getName()] = $column->toArray();
93 $this->schemaArray[
'tables'][$table->getName()][
'columns'][$column->getName()][
'type'] =
94 $column->getType()->getName();
107 if (!isset($this->schemaArray[
'tables'][$localTable->getName()][
'constraint'])) {
108 $this->schemaArray[
'tables'][$localTable->getName()][
'constraint']=array();
110 $this->schemaArray[
'tables'][$localTable->getName()][
'constraint'][] = array(
111 'name' => $fkConstraint->getName(),
112 'localcolumns' => $fkConstraint->getLocalColumns(),
113 'foreigntable' => $fkConstraint->getForeignTableName(),
114 'foreigncolumns' => $fkConstraint->getForeignColumns(),
115 'options' => $fkConstraint->getOptions()
130 $this->schemaArray[
'tables'][$table->getName()][
'indexes'][$index->getName()] = array(
131 'name' => $index->getName(),
132 'columns' => $index->getColumns(),
133 'unique' => $index->isUnique(),
134 'primary' => $index->isPrimary()
147 $this->schemaArray[
'sequence'][$sequence->getName()] = array(
148 'name' => $sequence->getName(),
149 'allocationsize' => $sequence->getAllocationSize(),
150 'initialvalue' => $sequence->getInitialValue()
acceptSequence(Sequence $sequence)
acceptIndex(Table $table, Index $index)
acceptColumn(Table $table, Column $column)
acceptTable(Table $table)
acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
acceptSchema(Schema $schema)