mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
update 11.0 sql (#5762)
This commit is contained in:
@@ -20,3 +20,21 @@ CREATE INDEX IF NOT EXISTS "ix_deleted_files_count_repo_id" ON "deleted_files_co
|
||||
CREATE INDEX IF NOT EXISTS "ix_deleted_files_count_deleted_time" ON "deleted_files_count" ("deleted_time");
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "share_uploadlinkshare_expire_date" ON "share_uploadlinkshare" ("expire_date");
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "sdoc_notification" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "doc_uuid" varchar(36) NOT NULL UNIQUE, "username" varchar(255) NOT NULL, "msg_type" varchar(36) NOT NULL, "created_at" datetime NOT NULL, "detail" text NOT NULL, "seen" integer NOT NULL DEFAULT 0);
|
||||
CREATE INDEX IF NOT EXISTS "sdoc_notification_doc_uuid_username" ON "sdoc_notification" ("doc_uuid", "username");
|
||||
CREATE INDEX IF NOT EXISTS "sdoc_notification_created_at" ON "sdoc_notification" ("created_at");
|
||||
|
||||
DROP TABLE IF EXISTS "options_useroptions_old";
|
||||
ALTER TABLE "options_useroptions" RENAME TO "options_useroptions_old";
|
||||
CREATE TABLE IF NOT EXISTS "options_useroptions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(255) NOT NULL, "option_val" varchar(512) NOT NULL, "option_key" varchar(50) NOT NULL);
|
||||
INSERT INTO "options_useroptions" ("email", "option_val", "option_key") SELECT "email", "option_val", "option_key" FROM "options_useroptions_old";
|
||||
DROP TABLE "options_useroptions_old";
|
||||
|
||||
DROP TABLE IF EXISTS "org_saml_config_old";
|
||||
ALTER TABLE "org_saml_config" RENAME TO "org_saml_config_old";
|
||||
CREATE TABLE IF NOT EXISTS "org_saml_config" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "org_id" integer NOT NULL UNIQUE, "metadata_url" TEXT NOT NULL, "domain" varchar(255) NULL UNIQUE, "dns_txt" varchar(64) NULL, "domain_verified" integer NOT NULL DEFAULT 0);
|
||||
CREATE INDEX IF NOT EXISTS "org_saml_config_domain_verified_398065b9" ON "org_saml_config" ("domain_verified");
|
||||
INSERT INTO "org_saml_config" ("org_id", "metadata_url", "domain") SELECT "org_id", "metadata_url", "domain" FROM "org_saml_config_old";
|
||||
UPDATE `org_saml_config` SET domain_verified=1 WHERE domain_verified=0;
|
||||
DROP TABLE "org_saml_config_old";
|
||||
|
Reference in New Issue
Block a user