Must be added namespace
swoft database migration component
composer require yangdong/swoft-migration
If it cannot be installed. maybe add version number.
composer require yangdong/swoft-migration:dev-master
about config
.env
DB_URI=127.0.0.1:3306/swoft?user=root&password=admin123456&charset=utf8mb4&table_prefix=sw_,127.0.0.1:3306/swoft?user=root&password=admin123456&charset=utf8mb4&table_prefix=sw_
Table prefix can be added.
&table_prefix=sw_
If no prefix is added, the default prefix sw_
will be used.
db.php can use evn()
get .env file config data.