mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
migrations: fix placeholder for shared session table
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -197,7 +197,7 @@ const (
|
||||
mysqlV30SQL = "ALTER TABLE `{{shares}}` ADD COLUMN `options` longtext NULL;"
|
||||
mysqlV30DownSQL = "ALTER TABLE `{{shares}}` DROP COLUMN `options`;"
|
||||
mysqlV31SQL = "DROP TABLE IF EXISTS `{{shared_sessions}}` CASCADE;" +
|
||||
"CREATE TABLE `shared_sessions` (`key` varchar(128) NOT NULL, `type` integer NOT NULL, `data` longtext NOT NULL, " +
|
||||
"CREATE TABLE `{{shared_sessions}}` (`key` varchar(128) NOT NULL, `type` integer NOT NULL, `data` longtext NOT NULL, " +
|
||||
"`timestamp` bigint NOT NULL, PRIMARY KEY (`key`, `type`));" +
|
||||
"CREATE INDEX `{{prefix}}shared_sessions_type_idx` ON `{{shared_sessions}}` (`type`);" +
|
||||
"CREATE INDEX `{{prefix}}shared_sessions_timestamp_idx` ON `{{shared_sessions}}` (`timestamp`);"
|
||||
|
||||
Reference in New Issue
Block a user