1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-17 23:59:44 +00:00

Add peer_ip length to 50 (#580)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2022-12-02 11:00:00 +08:00
committed by GitHub
parent 620438fbb5
commit 9b200675fb
3 changed files with 4 additions and 4 deletions

View File

@@ -995,7 +995,7 @@ create_tables_mysql (SeafRepoManager *mgr)
"id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, "
"token CHAR(41), "
"peer_id CHAR(41), "
"peer_ip VARCHAR(41), "
"peer_ip VARCHAR(50), "
"peer_name VARCHAR(255), "
"sync_time BIGINT, "
"client_ver VARCHAR(20), UNIQUE INDEX(token), INDEX(peer_id))"
@@ -1154,7 +1154,7 @@ create_tables_sqlite (SeafRepoManager *mgr)
sql = "CREATE TABLE IF NOT EXISTS RepoTokenPeerInfo ("
"token CHAR(41) PRIMARY KEY, "
"peer_id CHAR(41), "
"peer_ip VARCHAR(41), "
"peer_ip VARCHAR(50), "
"peer_name VARCHAR(255), "
"sync_time BIGINT, "
"client_ver VARCHAR(20))";