mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
11.0.3 sql (#5836)
This commit is contained in:
@@ -91,3 +91,5 @@ ALTER TABLE `org_saml_config` ADD COLUMN IF NOT EXISTS `dns_txt` varchar(64) NUL
|
||||
ALTER TABLE `org_saml_config` ADD COLUMN IF NOT EXISTS `domain_verified` TINYINT(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `org_saml_config` ADD INDEX IF NOT EXISTS `org_saml_config_domain_verified_398065b9` (`domain_verified`);
|
||||
UPDATE `org_saml_config` SET domain_verified=1 WHERE domain_verified=0;
|
||||
|
||||
ALTER TABLE `social_auth_usersocialauth` CHANGE extra_data extra_data longtext DEFAULT NULL;
|
||||
|
@@ -38,3 +38,11 @@ CREATE INDEX IF NOT EXISTS "org_saml_config_domain_verified_398065b9" ON "org_sa
|
||||
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";
|
||||
|
||||
DROP TABLE IF EXISTS "social_auth_usersocialauth_old";
|
||||
ALTER TABLE "social_auth_usersocialauth" RENAME TO "social_auth_usersocialauth_old";
|
||||
CREATE TABLE "social_auth_usersocialauth" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "provider" varchar(32) NOT NULL, "uid" varchar(255) NOT NULL, "extra_data" text NULL);
|
||||
CREATE INDEX "social_auth_usersocialauth_username_3f06b5cf" ON "social_auth_usersocialauth" ("username");
|
||||
CREATE UNIQUE INDEX "social_auth_usersocialauth_provider_uid_e6b5e668_uniq" ON "social_auth_usersocialauth" ("provider", "uid");
|
||||
INSERT INTO "social_auth_usersocialauth" ("username", "provider", "uid", "extra_data") SELECT "username", "provider", "uid", "extra_data" FROM "social_auth_usersocialauth_old";
|
||||
DROP TABLE "social_auth_usersocialauth_old";
|
||||
|
@@ -1023,7 +1023,7 @@ CREATE TABLE `social_auth_usersocialauth` (
|
||||
`username` varchar(255) NOT NULL,
|
||||
`provider` varchar(32) NOT NULL,
|
||||
`uid` varchar(255) NOT NULL,
|
||||
`extra_data` longtext NOT NULL,
|
||||
`extra_data` longtext DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `social_auth_usersocialauth_provider_uid_e6b5e668_uniq` (`provider`,`uid`),
|
||||
KEY `social_auth_usersocialauth_username_3f06b5cf` (`username`)
|
||||
|
@@ -397,7 +397,7 @@ CREATE TABLE "base_userlastlogin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREME
|
||||
CREATE TABLE "base_userstarredfiles" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "org_id" integer NOT NULL, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "is_dir" bool NOT NULL);
|
||||
CREATE TABLE "base_reposecretkey" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL UNIQUE, "secret_key" varchar(44) NOT NULL);
|
||||
CREATE TABLE "base_filecomment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "author" varchar(255) NOT NULL, "comment" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"), "detail" text NOT NULL, "resolved" bool NOT NULL);
|
||||
CREATE TABLE "social_auth_usersocialauth" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "provider" varchar(32) NOT NULL, "uid" varchar(255) NOT NULL, "extra_data" text NOT NULL);
|
||||
CREATE TABLE "social_auth_usersocialauth" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "provider" varchar(32) NOT NULL, "uid" varchar(255) NOT NULL, "extra_data" text NULL);
|
||||
CREATE TABLE "captcha_captchastore" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "challenge" varchar(32) NOT NULL, "response" varchar(32) NOT NULL, "hashkey" varchar(40) NOT NULL UNIQUE, "expiration" datetime NOT NULL);
|
||||
CREATE TABLE "contacts_contact" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_email" varchar(255) NOT NULL, "contact_email" varchar(255) NOT NULL, "contact_name" varchar(255) NULL, "note" varchar(255) NULL);
|
||||
CREATE TABLE "constance_config" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "constance_key" varchar(255) NOT NULL UNIQUE, "value" text NULL);
|
||||
|
Reference in New Issue
Block a user