Skip to content

Commit

Permalink
Update 6.1.0 upgrade sql.
Browse files Browse the repository at this point in the history
  • Loading branch information
killing committed May 9, 2017
1 parent 3773cbc commit 568e6ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/upgrade/sql/6.1.0/mysql/update.sql
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions scripts/upgrade/sql/6.1.0/sqlite3/update.sql
Original file line number Diff line number Diff line change
@@ -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"));
Expand Down

0 comments on commit 568e6ac

Please sign in to comment.