yangdong/swoft-migration

Migration database for swoft framework

dev-master 2018-11-01 07:06 UTC

This package is not auto-updated.

Last update: 2024-11-05 07:16:14 UTC


README

Must be added namespace

or

swoft migration

swoft database migration component

install

composer require yangdong/swoft-migration

If it cannot be installed. maybe add version number.

composer require yangdong/swoft-migration:dev-master

explain

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.