From 568e6ac57de9c399091a2637f9b6b7ac83816af0 Mon Sep 17 00:00:00 2001 From: Jonathan Xu Date: Tue, 9 May 2017 15:05:09 +0800 Subject: [PATCH] Update 6.1.0 upgrade sql. --- scripts/upgrade/sql/6.1.0/mysql/update.sql | 6 +++--- scripts/upgrade/sql/6.1.0/sqlite3/update.sql | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade/sql/6.1.0/mysql/update.sql b/scripts/upgrade/sql/6.1.0/mysql/update.sql index 2483fb33..4ffd944b 100644 --- a/scripts/upgrade/sql/6.1.0/mysql/update.sql +++ b/scripts/upgrade/sql/6.1.0/mysql/update.sql @@ -1,6 +1,6 @@ -ALTER TABLE share_fileshare MODIFY token varchar(100); - -ALTER TABLE share_uploadlinkshare MODIFY token varchar(100); +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, diff --git a/scripts/upgrade/sql/6.1.0/sqlite3/update.sql b/scripts/upgrade/sql/6.1.0/sqlite3/update.sql index 8fc476d9..bca64358 100644 --- a/scripts/upgrade/sql/6.1.0/sqlite3/update.sql +++ b/scripts/upgrade/sql/6.1.0/sqlite3/update.sql @@ -1,3 +1,5 @@ +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"));