Skip to content

Commit

Permalink
Don't create repo_id unique index
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Aug 8, 2024
1 parent 9930112 commit 99fb39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/repo-mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ create_tables_mysql (SeafRepoManager *mgr)

sql = "CREATE TABLE IF NOT EXISTS WebUploadTempFiles ( "
"id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, repo_id CHAR(40) NOT NULL, "
"file_path TEXT NOT NULL, tmp_file_path TEXT NOT NULL, UNIQUE INDEX(repo_id)) ENGINE=INNODB";
"file_path TEXT NOT NULL, tmp_file_path TEXT NOT NULL, INDEX(repo_id)) ENGINE=INNODB";
if (seaf_db_query (db, sql) < 0)
return -1;

Expand Down

0 comments on commit 99fb39e

Please sign in to comment.