update:优化代码生成

This commit is contained in:
JaguarJack
2021-03-14 07:41:15 +08:00
parent 7b7f13536f
commit 822ff3874a
15 changed files with 879 additions and 391 deletions

View File

@@ -11,7 +11,15 @@ use think\helper\Str;
class Migration extends Factory
{
public function done($params)
/**
*
* @time 2021年03月13日
* @param array $params
* @throws \Doctrine\DBAL\DBALException
* @throws \JaguarJack\MigrateGenerator\Exceptions\EmptyInDatabaseException
* @return string
*/
public function done(array $params): string
{
[$module, $tableName] = $params;