warlof / seat-migrator
此包已废弃,不再维护。未建议替代包。
此包负责处理来自 SeAT 项目的重大版本升级。
2.0.3
2018-05-26 10:52 UTC
Requires
- eveseat/api: 2.0.10
- eveseat/eveapi: 2.0.14
- eveseat/notifications: 2.0.11
- eveseat/services: 2.0.13
- eveseat/web: 2.0.19
- spatie/db-dumper: 2.9.0
This package is auto-updated.
Last update: 2020-08-11 16:38:05 UTC
README
SeAT 升级器
支持的版本
此包可以处理以下版本之间的升级
- 2.0.0 到 3.0.0
- 原始详细包版本
- eveseat/seat 2.0.0
- eveseat/eveapi 2.0.14
- eveseat/notifications 2.0.11
- eveseat/web 2.0.19
- eveseat/services 2.0.13
- eveseat/api 2.0.10
- 目标详细包版本
- eveseat/seat 3.0.0
- eveseat/eveapi 3.0.0
- eveseat/notifications 3.0.0
- eveseat/web 3.0.0
- eveseat/services 3.0.0
- eveseat/api 3.0.0
- 原始详细包版本
使用说明
此包的版本与要迁移的 SeAT 版本紧密相关。
此包版本将始终与 SeAT 核心原始版本匹配,以避免任何问题。
要求
为了使用此包,您需要从源和目标 SeAT 版本都安装好。
这两个安装可能位于不同的服务器上,脚本会处理。
从两个安装中,数据库必须可以从安装包的服务器(源)访问。
过程
- 连接到要迁移的 SeAT 安装的服务器
- 移动到 seat 目录(通常是
/var/www/seat
) - 导入适当的版本包(对于 v2 使用
composer require warlof/seat-migrator
) - 将包添加到项目中,通过在
/config/app.php
的providers
数组中追加Warlof\Seat\Migrator\MigratorServiceProvider::class,
- 使用
php artisan vendor:publish --force
发布包文件 - 使用
php artisan migrate
运行迁移脚本,该脚本将为所有表追加迁移标志 - 一旦安装了包,使用
php artisan seat:migrator:upgrade
运行升级过程 - 遵循提示,喝一杯茶(如果您有大型数据库,计划喝几杯) :)