mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
add seafile scripts
This commit is contained in:
23
scripts/upgrade/sql/6.1.0/mysql/seahub.sql
Normal file
23
scripts/upgrade/sql/6.1.0/mysql/seahub.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
ALTER TABLE `share_fileshare` MODIFY token varchar(100);
|
||||
ALTER TABLE `share_fileshare` ADD COLUMN `permission` varchar(50) NOT NULL DEFAULT 'view_download';
|
||||
ALTER TABLE `share_uploadlinkshare` MODIFY token varchar(100);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `institutions_institutionquota` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`quota` bigint(20) NOT NULL,
|
||||
`institution_id` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `i_institution_id_2ca7c89373390e2c_fk_institutions_institution_id` (`institution_id`),
|
||||
CONSTRAINT `i_institution_id_2ca7c89373390e2c_fk_institutions_institution_id` FOREIGN KEY (`institution_id`) REFERENCES `institutions_institution` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `admin_log_adminlog` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`email` varchar(254) NOT NULL,
|
||||
`operation` varchar(255) NOT NULL,
|
||||
`detail` longtext NOT NULL,
|
||||
`datetime` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `admin_log_adminlog_0c83f57c` (`email`),
|
||||
KEY `admin_log_adminlog_f7235a61` (`operation`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
9
scripts/upgrade/sql/6.1.0/sqlite3/seahub.sql
Normal file
9
scripts/upgrade/sql/6.1.0/sqlite3/seahub.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
alter table share_fileshare add column permission varchar(50) not null default 'view_download';
|
||||
|
||||
CREATE TABLE "admin_log_adminlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "operation" varchar(255) NOT NULL, "detail" text NOT NULL, "datetime" datetime NOT NULL);
|
||||
|
||||
CREATE TABLE "institutions_institutionquota" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "quota" bigint NOT NULL, "institution_id" integer NOT NULL REFERENCES "institutions_institution" ("id"));
|
||||
|
||||
CREATE INDEX "admin_log_adminlog_0c83f57c" ON "admin_log_adminlog" ("email");
|
||||
CREATE INDEX "admin_log_adminlog_f7235a61" ON "admin_log_adminlog" ("operation");
|
||||
CREATE INDEX "institutions_institutionquota_a964baeb" ON "institutions_institutionquota" ("institution_id");
|
Reference in New Issue
Block a user