mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
implement yggo db migration cli tool
This commit is contained in:
parent
875382c56e
commit
3448eb85f7
2 changed files with 189 additions and 1 deletions
21
README.md
21
README.md
|
|
@ -78,4 +78,23 @@ php src/cli/document/crawl.php
|
|||
php src/cli/document/search.php '@title "*"' [limit]
|
||||
```
|
||||
* `query` - required
|
||||
* `limit` - optional search results limit
|
||||
* `limit` - optional search results limit
|
||||
|
||||
##### Migration
|
||||
|
||||
###### YGGo
|
||||
|
||||
Import index from YGGo database
|
||||
|
||||
```
|
||||
php src/cli/yggo/import.php 'host' 'port' 'user' 'password' 'database' [unique]
|
||||
```
|
||||
|
||||
Source DB fields required:
|
||||
|
||||
* `host`
|
||||
* `port`
|
||||
* `user`
|
||||
* `password`
|
||||
* `database`
|
||||
* `unique` - optional, check for unique URL (takes more time)
|
||||
Loading…
Add table
Add a link
Reference in a new issue