|
@@ 95-102 (lines=8) @@
|
| 92 |
|
* @param StreamInterface $from |
| 93 |
|
* @param StreamInterface $to |
| 94 |
|
*/ |
| 95 |
|
public function renameTable(StreamInterface $from, StreamInterface $to) |
| 96 |
|
{ |
| 97 |
|
if ($from->getEntryTableName() === $to->getEntryTableName()) { |
| 98 |
|
return; |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
$this->schema->rename($from->getEntryTableName(), $to->getEntryTableName()); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* Rename a translations table. |
|
@@ 110-117 (lines=8) @@
|
| 107 |
|
* @param StreamInterface $from |
| 108 |
|
* @param StreamInterface $to |
| 109 |
|
*/ |
| 110 |
|
public function renameTranslationsTable(StreamInterface $from, StreamInterface $to) |
| 111 |
|
{ |
| 112 |
|
if ($from->getEntryTranslationsTableName() === $to->getEntryTranslationsTableName()) { |
| 113 |
|
return; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
$this->schema->rename($from->getEntryTranslationsTableName(), $to->getEntryTranslationsTableName()); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
/** |
| 120 |
|
* Drop a table. |