支持多数据库

This commit is contained in:
zyimm 2023-01-11 15:55:30 +08:00
parent f0587e22ac
commit d1fa6e7419

View File

@ -50,7 +50,7 @@ abstract class AbstractMigration implements MigrationInterface
*
* @var string|array
*/
protected $dbConfig = null;
protected $db_config = null;
/**
* @var float
@ -271,15 +271,16 @@ abstract class AbstractMigration implements MigrationInterface
* A short-hand method to drop the given database table.
*
* @param string $tableName Table Name
*
* @return void
*/
public function dropTable($tableName)
public function dropTable(string $tableName)
{
$this->table($tableName)->drop();
}
public function getDbConfig()
{
return $this->dbConfig;
return $this->db_config;
}
}