|
1 | 1 | <?php declare(strict_types=1);
|
2 | 2 |
|
3 |
| - |
4 | 3 | namespace Swoft\Devtool\Model\Logic;
|
5 | 4 |
|
6 | 5 | use InvalidArgumentException;
|
7 | 6 | use Leuffen\TextTemplate\TemplateParsingException;
|
8 |
| -use ReflectionException; |
9 | 7 | use Swoft;
|
10 | 8 | use Swoft\Bean\Annotation\Mapping\Bean;
|
11 | 9 | use Swoft\Bean\Annotation\Mapping\Inject;
|
12 | 10 | use Swoft\Bean\BeanFactory;
|
13 |
| -use Swoft\Bean\Exception\ContainerException; |
14 | 11 | use Swoft\Db\DB;
|
15 | 12 | use Swoft\Db\Exception\DbException;
|
16 | 13 | use Swoft\Db\Schema;
|
@@ -205,9 +202,7 @@ public function history(array $dbs, string $prefix, int $start, int $end, int $l
|
205 | 202 | * @param string $db
|
206 | 203 | * @param string $defaultPool
|
207 | 204 | *
|
208 |
| - * @throws ContainerException |
209 | 205 | * @throws DbException
|
210 |
| - * @throws ReflectionException |
211 | 206 | */
|
212 | 207 | private function showHistory(int $limit, string $dbPrefix, string $db, string $defaultPool): void
|
213 | 208 | {
|
@@ -268,9 +263,7 @@ private function handler(callable $callback, array $dbs, int $start = 0, int $en
|
268 | 263 | * @param string $dbPrefix
|
269 | 264 | * @param string $db
|
270 | 265 | *
|
271 |
| - * @throws ContainerException |
272 | 266 | * @throws DbException
|
273 |
| - * @throws ReflectionException |
274 | 267 | * @throws Throwable
|
275 | 268 | */
|
276 | 269 | private function executeUp(array $mathMigrateNames, bool $isConfirm, string $dbPrefix, string $db = ''): void
|
@@ -333,9 +326,7 @@ private function executeUp(array $mathMigrateNames, bool $isConfirm, string $dbP
|
333 | 326 | * @param string $defaultPool
|
334 | 327 | * @param int $step
|
335 | 328 | *
|
336 |
| - * @throws ContainerException |
337 | 329 | * @throws DbException
|
338 |
| - * @throws ReflectionException |
339 | 330 | * @throws Throwable
|
340 | 331 | */
|
341 | 332 | private function executeDown(
|
@@ -394,9 +385,7 @@ private function getRollbackMigrations(string $dbPrefix, string $db, string $def
|
394 | 385 | * @param string $dbPrefix
|
395 | 386 | * @param string $db
|
396 | 387 | *
|
397 |
| - * @throws ContainerException |
398 | 388 | * @throws DbException
|
399 |
| - * @throws ReflectionException |
400 | 389 | * @throws Throwable
|
401 | 390 | */
|
402 | 391 | private function batchRollback(string $pool, array $migrates, bool $isConfirm, string $dbPrefix, string $db): void
|
@@ -611,9 +600,7 @@ private function matchNames(array $names, bool $strict = false): array
|
611 | 600 | /**
|
612 | 601 | * @param Builder $schema
|
613 | 602 | *
|
614 |
| - * @throws ContainerException |
615 | 603 | * @throws DbException
|
616 |
| - * @throws ReflectionException |
617 | 604 | */
|
618 | 605 | private function createMigrationIfNotExists(Builder $schema): void
|
619 | 606 | {
|
|
0 commit comments