mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
add seafile scripts
This commit is contained in:
1
scripts/upgrade/sql/4.2.0/mysql/seafile.sql
Normal file
1
scripts/upgrade/sql/4.2.0/mysql/seafile.sql
Normal file
@@ -0,0 +1 @@
|
||||
alter table RepoTrash add del_time BIGINT;
|
18
scripts/upgrade/sql/4.2.0/mysql/seahub.sql
Normal file
18
scripts/upgrade/sql/4.2.0/mysql/seahub.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE IF NOT EXISTS `base_clientlogintoken` (
|
||||
`token` varchar(32) NOT NULL,
|
||||
`username` varchar(255) NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
PRIMARY KEY (`token`),
|
||||
KEY `base_clientlogintoken_ee0cafa2` (`username`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `organizations_orgmemberquota` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`org_id` int(11) NOT NULL,
|
||||
`quota` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `organizations_orgmemberquota_944dadb6` (`org_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
REPLACE INTO django_content_type VALUES(44,'client login token','base','clientlogintoken');
|
||||
REPLACE INTO django_content_type VALUES(45,'org member quota','organizations','orgmemberquota');
|
1
scripts/upgrade/sql/4.2.0/sqlite3/seafile.sql
Normal file
1
scripts/upgrade/sql/4.2.0/sqlite3/seafile.sql
Normal file
@@ -0,0 +1 @@
|
||||
alter table RepoTrash add del_time BIGINT;
|
18
scripts/upgrade/sql/4.2.0/sqlite3/seahub.sql
Normal file
18
scripts/upgrade/sql/4.2.0/sqlite3/seahub.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE IF NOT EXISTS "base_clientlogintoken" (
|
||||
"token" varchar(32) NOT NULL PRIMARY KEY,
|
||||
"username" varchar(255) NOT NULL,
|
||||
"timestamp" datetime NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "base_clientlogintoken_ee0cafa2" ON "base_clientlogintoken" ("username");
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "organizations_orgmemberquota" (
|
||||
"id" integer NOT NULL PRIMARY KEY,
|
||||
"org_id" integer NOT NULL,
|
||||
"quota" integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "organizations_orgmemberquota_944dadb6" ON "organizations_orgmemberquota" ("org_id");
|
||||
|
||||
REPLACE INTO "django_content_type" VALUES(44,'client login token','base','clientlogintoken');
|
||||
REPLACE INTO "django_content_type" VALUES(45,'org member quota','organizations','orgmemberquota');
|
Reference in New Issue
Block a user