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/1.7.0/mysql/seafile.sql
Normal file
1
scripts/upgrade/sql/1.7.0/mysql/seafile.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE INDEX repousertoken_email on RepoUserToken(email);
|
17
scripts/upgrade/sql/1.7.0/mysql/seahub.sql
Normal file
17
scripts/upgrade/sql/1.7.0/mysql/seahub.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE `message_usermessage` (
|
||||
`message_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`message` varchar(512) NOT NULL,
|
||||
`from_email` varchar(75) NOT NULL,
|
||||
`to_email` varchar(75) NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
`ifread` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`message_id`),
|
||||
KEY `message_usermessage_8b1dd4eb` (`from_email`),
|
||||
KEY `message_usermessage_590d1560` (`to_email`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `message_usermsglastcheck` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`check_time` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
1
scripts/upgrade/sql/1.7.0/sqlite3/seafile.sql
Normal file
1
scripts/upgrade/sql/1.7.0/sqlite3/seafile.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE INDEX IF NOT EXISTS repousertoken_email on RepoUserToken(email);
|
16
scripts/upgrade/sql/1.7.0/sqlite3/seahub.sql
Normal file
16
scripts/upgrade/sql/1.7.0/sqlite3/seahub.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
CREATE TABLE IF NOT EXISTS "message_usermessage" (
|
||||
"message_id" integer NOT NULL PRIMARY KEY,
|
||||
"message" varchar(512) NOT NULL,
|
||||
"from_email" varchar(75) NOT NULL,
|
||||
"to_email" varchar(75) NOT NULL,
|
||||
"timestamp" datetime NOT NULL,
|
||||
"ifread" bool NOT NULL
|
||||
)
|
||||
;
|
||||
CREATE TABLE IF NOT EXISTS "message_usermsglastcheck" (
|
||||
"id" integer NOT NULL PRIMARY KEY,
|
||||
"check_time" datetime NOT NULL
|
||||
)
|
||||
;
|
||||
CREATE INDEX IF NOT EXISTS "message_usermessage_8b1dd4eb" ON "message_usermessage" ("from_email");
|
||||
CREATE INDEX IF NOT EXISTS "message_usermessage_590d1560" ON "message_usermessage" ("to_email");
|
Reference in New Issue
Block a user