robinwongm/tjupt-to-unit3d

一个将TJUPT数据库导入到UNIT3D的工匠级包。

v2.4.3 2020-02-25 14:58 UTC

This package is auto-updated.

Last update: 2024-09-26 01:33:20 UTC


README

Latest Version on Packagist Software License Build Status Code Coverage Total Downloads

一个将TJUPT(NexusPHP)数据库导入到UNIT3D的工匠级包。

安装

通过Composer

$ composer require robinwongm/tjupt-to-unit3d --dev

要安装,只需

  • 从您的UNIT3D安装中要求此包。
  • 在您的数据库配置中添加一个空的imports条目。

用法

建议在UNIT3D的新安装下使用此包。

 # Optional but recommended: Make sure a fresh installation
php artisan migrate:fresh --seed

# IMPORTANT: Run migrations from this package
php artisan migrate --path=vendor/robinwongm/tjupt-to-unit3d/src/migrations/2020_02_10_054032_add_nexus_compatibility.php

# Import
php artisan unit3d:from-tjupt --host=<YOUR TJUPT DATABASE HOST> --database=<YOUR TJUPT DATABASE NAME> --username=<YOUR TJUPT DATABASE USERNAME> --password=<YOUR TJUPT DATABASE PASSWORD>

# Optional: Remove temporarily-added columns
php artisan migrate --path=vendor/robinwongm/tjupt-to-unit3d/src/migrations/2020_02_10_054032_add_nexus_compatibility.php

有关使用说明的其他说明,请运行

php artisan unit3d:from-tjupt --help

变更日志

请参阅CHANGELOG,了解更多最近更改的信息。

测试

$ composer test

贡献

请参阅CONTRIBUTINGCODE_OF_CONDUCT以获取详细信息。

致谢

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件