first commit
This commit is contained in:
54
Xboard/docs/en/migration/config.md
Normal file
54
Xboard/docs/en/migration/config.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# Configuration Migration Guide
|
||||
|
||||
This guide explains how to migrate configuration files from v2board to Xboard. Xboard stores configurations in the database instead of files.
|
||||
|
||||
### 1. Docker Compose Environment
|
||||
|
||||
1. Prepare configuration file:
|
||||
```bash
|
||||
# Create config directory
|
||||
mkdir config
|
||||
|
||||
# Copy old configuration file
|
||||
cp old-project-path/config/v2board.php config/
|
||||
```
|
||||
|
||||
2. Modify `docker-compose.yaml`, uncomment the following line:
|
||||
```yaml
|
||||
- ./config/v2board.php:/www/config/v2board.php
|
||||
```
|
||||
|
||||
3. Execute migration:
|
||||
```bash
|
||||
docker compose run -it --rm web php artisan migrateFromV2b config
|
||||
```
|
||||
|
||||
### 2. aaPanel Environment
|
||||
|
||||
1. Copy configuration file:
|
||||
```bash
|
||||
cp old-project-path/config/v2board.php config/v2board.php
|
||||
```
|
||||
|
||||
2. Execute migration:
|
||||
```bash
|
||||
php artisan migrateFromV2b config
|
||||
```
|
||||
|
||||
### 3. aaPanel + Docker Environment
|
||||
|
||||
1. Copy configuration file:
|
||||
```bash
|
||||
cp old-project-path/config/v2board.php config/v2board.php
|
||||
```
|
||||
|
||||
2. Execute migration:
|
||||
```bash
|
||||
docker compose run -it --rm web php artisan migrateFromV2b config
|
||||
```
|
||||
|
||||
### Important Notes
|
||||
|
||||
- After modifying the admin path, service restart is required:
|
||||
- Docker environment: `docker compose restart`
|
||||
- aaPanel environment: Restart the Octane daemon process
|
||||
63
Xboard/docs/en/migration/v2board-1.7.3.md
Normal file
63
Xboard/docs/en/migration/v2board-1.7.3.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# V2board 1.7.3 Migration Guide
|
||||
|
||||
This guide explains how to migrate from V2board version 1.7.3 to Xboard.
|
||||
|
||||
### 1. Database Changes Overview
|
||||
|
||||
- `v2_stat_order` table renamed to `v2_stat`:
|
||||
- `order_amount` → `order_total`
|
||||
- `commission_amount` → `commission_total`
|
||||
- New fields added:
|
||||
- `paid_count` (integer, nullable)
|
||||
- `paid_total` (integer, nullable)
|
||||
- `register_count` (integer, nullable)
|
||||
- `invite_count` (integer, nullable)
|
||||
- `transfer_used_total` (string(32), nullable)
|
||||
|
||||
- New tables added:
|
||||
- `v2_log`
|
||||
- `v2_server_hysteria`
|
||||
- `v2_server_vless`
|
||||
|
||||
### 2. Prerequisites
|
||||
|
||||
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
|
||||
- [Docker Compose Deployment](../installation/docker-compose.md)
|
||||
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
|
||||
- [aaPanel Deployment](../installation/aapanel.md)
|
||||
|
||||
### 3. Migration Steps
|
||||
|
||||
#### Docker Environment
|
||||
|
||||
```bash
|
||||
# 1. Stop services
|
||||
docker compose down
|
||||
|
||||
# 2. Clear database
|
||||
docker compose run -it --rm web php artisan db:wipe
|
||||
|
||||
# 3. Import old database (Important)
|
||||
# Please manually import the V2board 1.7.3 database
|
||||
|
||||
# 4. Execute migration
|
||||
docker compose run -it --rm web php artisan migratefromv2b 1.7.3
|
||||
```
|
||||
|
||||
#### aaPanel Environment
|
||||
|
||||
```bash
|
||||
# 1. Clear database
|
||||
php artisan db:wipe
|
||||
|
||||
# 2. Import old database (Important)
|
||||
# Please manually import the V2board 1.7.3 database
|
||||
|
||||
# 3. Execute migration
|
||||
php artisan migratefromv2b 1.7.3
|
||||
```
|
||||
|
||||
### 4. Configuration Migration
|
||||
|
||||
After completing the data migration, you need to migrate the configuration file:
|
||||
- [Configuration Migration Guide](./config.md)
|
||||
51
Xboard/docs/en/migration/v2board-1.7.4.md
Normal file
51
Xboard/docs/en/migration/v2board-1.7.4.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# V2board 1.7.4 Migration Guide
|
||||
|
||||
This guide explains how to migrate from V2board version 1.7.4 to Xboard.
|
||||
|
||||
### 1. Database Changes Overview
|
||||
|
||||
- New table added:
|
||||
- `v2_server_vless`
|
||||
|
||||
### 2. Prerequisites
|
||||
|
||||
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
|
||||
- [Docker Compose Deployment](../installation/docker-compose.md)
|
||||
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
|
||||
- [aaPanel Deployment](../installation/aapanel.md)
|
||||
|
||||
### 3. Migration Steps
|
||||
|
||||
#### Docker Environment
|
||||
|
||||
```bash
|
||||
# 1. Stop services
|
||||
docker compose down
|
||||
|
||||
# 2. Clear database
|
||||
docker compose run -it --rm web php artisan db:wipe
|
||||
|
||||
# 3. Import old database (Important)
|
||||
# Please manually import the V2board 1.7.4 database
|
||||
|
||||
# 4. Execute migration
|
||||
docker compose run -it --rm web php artisan migratefromv2b 1.7.4
|
||||
```
|
||||
|
||||
#### aaPanel Environment
|
||||
|
||||
```bash
|
||||
# 1. Clear database
|
||||
php artisan db:wipe
|
||||
|
||||
# 2. Import old database (Important)
|
||||
# Please manually import the V2board 1.7.4 database
|
||||
|
||||
# 3. Execute migration
|
||||
php artisan migratefromv2b 1.7.4
|
||||
```
|
||||
|
||||
### 4. Configuration Migration
|
||||
|
||||
After completing the data migration, you need to migrate the configuration file:
|
||||
- [Configuration Migration Guide](./config.md)
|
||||
61
Xboard/docs/en/migration/v2board-dev.md
Normal file
61
Xboard/docs/en/migration/v2board-dev.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# V2board Dev Migration Guide
|
||||
|
||||
This guide explains how to migrate from V2board Dev version (2023/10/27) to Xboard.
|
||||
|
||||
⚠️ Please upgrade to version 2023/10/27 following the official guide before proceeding with migration.
|
||||
|
||||
### 1. Database Changes Overview
|
||||
|
||||
- `v2_order` table:
|
||||
- Added `surplus_order_ids` (text, nullable) - Deduction orders
|
||||
|
||||
- `v2_plan` table:
|
||||
- Removed `daily_unit_price` - Affects period value
|
||||
- Removed `transfer_unit_price` - Affects traffic value
|
||||
|
||||
- `v2_server_hysteria` table:
|
||||
- Removed `ignore_client_bandwidth` - Affects bandwidth configuration
|
||||
- Removed `obfs_type` - Affects obfuscation type configuration
|
||||
|
||||
### 2. Prerequisites
|
||||
|
||||
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
|
||||
- [Docker Compose Deployment](../installation/docker-compose.md)
|
||||
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
|
||||
- [aaPanel Deployment](../installation/aapanel.md)
|
||||
|
||||
### 3. Migration Steps
|
||||
|
||||
#### Docker Environment
|
||||
|
||||
```bash
|
||||
# 1. Stop services
|
||||
docker compose down
|
||||
|
||||
# 2. Clear database
|
||||
docker compose run -it --rm web php artisan db:wipe
|
||||
|
||||
# 3. Import old database (Important)
|
||||
# Please manually import the V2board Dev database
|
||||
|
||||
# 4. Execute migration
|
||||
docker compose run -it --rm web php artisan migratefromv2b dev231027
|
||||
```
|
||||
|
||||
#### aaPanel Environment
|
||||
|
||||
```bash
|
||||
# 1. Clear database
|
||||
php artisan db:wipe
|
||||
|
||||
# 2. Import old database (Important)
|
||||
# Please manually import the V2board Dev database
|
||||
|
||||
# 3. Execute migration
|
||||
php artisan migratefromv2b dev231027
|
||||
```
|
||||
|
||||
### 4. Configuration Migration
|
||||
|
||||
After completing the data migration, you need to migrate the configuration file:
|
||||
- [Configuration Migration Guide](./config.md)
|
||||
Reference in New Issue
Block a user