byteshard/schema
byteShard PHP schema
v1.3.4
2024-04-24 11:01 UTC
Requires
- php: ^8.1
- ext-mysqli: *
- ext-pdo: *
- byteshard/enum: ^1.0
- symfony/console: ^6.2
Requires (Dev)
- byteshard/core: ^1.0
- composer/composer: ^2.5
- phpstan/phpstan: ^1.9
README
安装 byteShard schema
composer require byteshard/schema
创建/迁移数据库
确保您的数据库连接已输入到根目录中的 /config.php 文件。
然后调用 ./vendor/bin/database
来执行迁移。
开发
克隆仓库,执行 composer update
。由于对 byteshard/core
的开发依赖及其对该包的回依赖,Composer 需要知道当前包的版本。这可以通过设置 COMPOSER_ROOT_VERSION=$(git describe --tags --abbrev=0)
来实现。在 Docker 环境中,以下命令可以达到相同的效果:docker run --rm --interactive --tty --volume $PWD:/app --volume ~/.composer:/tmp -e COMPOSER_ROOT_VERSION=$(git describe --tags --abbrev=0) composer
。
贡献
请阅读我们的贡献指南。
许可协议
许可协议可在此处找到