@@ 145-154 (lines=10) @@ | ||
142 | /** |
|
143 | * {@inheritdoc} |
|
144 | */ |
|
145 | public function addColumn(Table $table, Column $column) |
|
146 | { |
|
147 | $adapter = $this->getAdapter(); |
|
148 | if (!$adapter instanceof DirectActionInterface) { |
|
149 | throw new \BadMethodCallException('The underlying adapter does not implement DirectActionInterface'); |
|
150 | } |
|
151 | $adapterTableName = $this->getAdapterTableName($table->getName()); |
|
152 | $adapterTable = new Table($adapterTableName, $table->getOptions()); |
|
153 | $adapter->addColumn($adapterTable, $column); |
|
154 | } |
|
155 | ||
156 | /** |
|
157 | * {@inheritdoc} |
|
@@ 267-276 (lines=10) @@ | ||
264 | /** |
|
265 | * {@inheritdoc} |
|
266 | */ |
|
267 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
268 | { |
|
269 | $adapter = $this->getAdapter(); |
|
270 | if (!$adapter instanceof DirectActionInterface) { |
|
271 | throw new \BadMethodCallException('The underlying adapter does not implement DirectActionInterface'); |
|
272 | } |
|
273 | $adapterTableName = $this->getAdapterTableName($table->getName()); |
|
274 | $adapterTable = new Table($adapterTableName, $table->getOptions()); |
|
275 | $adapter->addForeignKey($adapterTable, $foreignKey); |
|
276 | } |
|
277 | ||
278 | /** |
|
279 | * {@inheritdoc} |