1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-02 07:54:27 +00:00

Fix upgrage sql: create WebUploadTempFiles table if not exists.

This commit is contained in:
ly1217
2019-05-28 21:07:05 -07:00
parent 182fdb2028
commit 9730d07bb1
2 changed files with 2 additions and 0 deletions

View File

@@ -4,3 +4,4 @@ ALTER TABLE RepoSyncError RENAME TO TmpRepoSyncError;
CREATE TABLE RepoSyncError (token CHAR(41) PRIMARY KEY, error_time BIGINT, error_con VARCHAR(1024));
INSERT INTO RepoSyncError SELECT * FROM TmpRepoSyncError;
DROP TABLE TmpRepoSyncError;
CREATE TABLE IF NOT EXISTS WebUploadTempFiles (repo_id CHAR(40) NOT NULL, file_path TEXT NOT NULL, tmp_file_path TEXT NOT NULL);