Skip to content

Commit 182fdb2

Browse files
committed
Fix upgrade sql: create RepoSyncError table if not exists.
1 parent d20e485 commit 182fdb2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ALTER TABLE RepoInfo ADD COLUMN status INTEGER DEFAULT 0;
2+
CREATE TABLE IF NOT EXISTS RepoSyncError (id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, token CHAR(41), error_time BIGINT UNSIGNED, error_con VARCHAR(1024), UNIQUE INDEX(token));
23
ALTER TABLE RepoSyncError MODIFY COLUMN error_con VARCHAR(1024);

scripts/upgrade/sql/7.0.0/sqlite3/seafile.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ALTER TABLE RepoInfo ADD COLUMN status INTEGER DEFAULT 0;
2+
CREATE TABLE IF NOT EXISTS RepoSyncError (token CHAR(41) PRIMARY KEY, error_time BIGINT, error_con VARCHAR(1024));
23
ALTER TABLE RepoSyncError RENAME TO TmpRepoSyncError;
34
CREATE TABLE RepoSyncError (token CHAR(41) PRIMARY KEY, error_time BIGINT, error_con VARCHAR(1024));
45
INSERT INTO RepoSyncError SELECT * FROM TmpRepoSyncError;

0 commit comments

Comments
 (0)