1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-09 03:08:57 +00:00

update sql

This commit is contained in:
王健辉
2019-09-21 18:02:54 +08:00
parent 241ba8e621
commit 41b5b8724c
2 changed files with 15 additions and 0 deletions

View File

@@ -112,3 +112,14 @@ CREATE TABLE IF NOT EXISTS `social_auth_usersocialauth` (
ALTER TABLE `base_filecomment` ADD `detail` LONGTEXT DEFAULT NULL;
ALTER TABLE `base_filecomment` ADD `resolved` TINYINT(1) NOT NULL DEFAULT 0;
ALTER TABLE `base_filecomment` ADD INDEX `resolved` (`resolved`);
CREATE TABLE IF NOT EXISTS `base_reposecretkey` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`repo_id` varchar(36) NOT NULL,
`secret_key` varchar(44) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `repo_id` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -34,3 +34,7 @@ CREATE INDEX IF NOT EXISTS "related_files_relatedfiles_r_uuid_id_031751df" ON "r
ALTER TABLE "base_filecomment" ADD COLUMN "detail" text DEFAULT NULL;
ALTER TABLE "base_filecomment" ADD COLUMN "resolved" bool NOT NULL DEFAULT 0;
CREATE INDEX IF NOT EXISTS "base_filecomment_resolved_e0717eca" ON "base_filecomment" ("resolved");
CREATE TABLE IF NOT EXISTS "base_reposecretkey" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL UNIQUE, "secret_key" varchar(44) NOT NULL);