1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 15:18:58 +00:00

Add primary key for mysql table.

Add column names in 'INSERT' and 'REPLACE' sql.
This commit is contained in:
cuihaikuo
2018-04-18 15:07:49 +08:00
parent 688764808d
commit b9d74500fa
9 changed files with 97 additions and 74 deletions

View File

@@ -54,7 +54,7 @@ save_virtual_repo_info (SeafRepoManager *mgr,
int ret = 0;
if (seaf_db_statement_query (mgr->seaf->db,
"INSERT INTO VirtualRepo VALUES (?, ?, ?, ?)",
"INSERT INTO VirtualRepo (repo_id, origin_repo, path, base_commit) VALUES (?, ?, ?, ?)",
4, "string", repo_id, "string", origin_repo_id,
"string", path, "string", base_commit) < 0)
ret = -1;