fix(db): increase some column size

This commit is contained in:
Hivert Quentin
2025-10-15 17:07:37 +02:00
parent f18e3a05c3
commit f8638a3f4e
2 changed files with 16 additions and 16 deletions

View File

@@ -214,10 +214,10 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_user_session VARCHAR(4096) NOT NULL," @" c_user_session TEXT NOT NULL,"
@" c_old_session VARCHAR(4096) NULL," @" c_old_session TEXT NULL,"
@" c_session_started INT4 NOT NULL," @" c_session_started INT4 NOT NULL,"
@" c_refresh_token VARCHAR(4096) NULL," @" c_refresh_token TEXT NULL,"
@" c_access_token_expires_in INT4 NULL," @" c_access_token_expires_in INT4 NULL,"
@" c_refresh_token_expires_in INT4 NULL)"); @" c_refresh_token_expires_in INT4 NULL)");
@@ -274,7 +274,7 @@
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR(255) PRIMARY KEY," @" c_id VARCHAR(255) PRIMARY KEY,"
@" c_value VARCHAR(4096) NOT NULL," @" c_value TEXT NOT NULL,"
@" c_creationdate INT4 NOT NULL," @" c_creationdate INT4 NOT NULL,"
@" c_lastseen INT4 NOT NULL)"); @" c_lastseen INT4 NOT NULL)");
@@ -375,10 +375,10 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_user_session VARCHAR(4096) NOT NULL," @" c_user_session TEXT NOT NULL,"
@" c_old_session VARCHAR(4096) NULL," @" c_old_session TEXT NULL,"
@" c_session_started INT4 NOT NULL," @" c_session_started INT4 NOT NULL,"
@" c_refresh_token VARCHAR(4096) NULL," @" c_refresh_token TEXT NULL,"
@" c_access_token_expires_in INT4 NULL," @" c_access_token_expires_in INT4 NULL,"
@" c_refresh_token_expires_in INT4 NULL)"); @" c_refresh_token_expires_in INT4 NULL)");
@@ -435,7 +435,7 @@
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR(255) PRIMARY KEY," @" c_id VARCHAR(255) PRIMARY KEY,"
@" c_value VARCHAR(4096) NOT NULL," @" c_value TEXT NOT NULL,"
@" c_creationdate INT NOT NULL," @" c_creationdate INT NOT NULL,"
@" c_lastseen INT NOT NULL)"); @" c_lastseen INT NOT NULL)");
@@ -536,10 +536,10 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_user_session VARCHAR2(4096) NOT NULL," @" c_user_session VARCHAR2(8192) NOT NULL,"
@" c_old_session VARCHAR2(4096) NULL," @" c_old_session VARCHAR2(8192) NULL,"
@" c_session_started INTEGER NOT NULL," @" c_session_started INTEGER NOT NULL,"
@" c_refresh_token VARCHAR2(4096) NULL," @" c_refresh_token VARCHAR2(8192) NULL,"
@" c_access_token_expires_in INTEGER NULL," @" c_access_token_expires_in INTEGER NULL,"
@" c_refresh_token_expires_in INTEGER NULL)"); @" c_refresh_token_expires_in INTEGER NULL)");
@@ -595,7 +595,7 @@
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR2(255) PRIMARY KEY," @" c_id VARCHAR2(255) PRIMARY KEY,"
@" c_value VARCHAR2(4096) NOT NULL," @" c_value VARCHAR2(8192) NOT NULL,"
@" c_creationdate INTEGER NOT NULL," @" c_creationdate INTEGER NOT NULL,"
@" c_lastseen INTEGER NOT NULL)"); @" c_lastseen INTEGER NOT NULL)");

View File

@@ -142,7 +142,7 @@ CREATE TABLE sogo_quick_contact (
CREATE TABLE sogo_sessions_folder ( CREATE TABLE sogo_sessions_folder (
c_id varchar(255) NOT NULL, c_id varchar(255) NOT NULL,
c_value varchar(4096) NOT NULL, c_value text NOT NULL,
c_creationdate int(11) NOT NULL, c_creationdate int(11) NOT NULL,
c_lastseen int(11) NOT NULL, c_lastseen int(11) NOT NULL,
PRIMARY KEY (c_id) PRIMARY KEY (c_id)
@@ -166,10 +166,10 @@ CREATE TABLE sogo_admin (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
CREATE TABLE sogo_opend_id ( CREATE TABLE sogo_opend_id (
c_user_session varchar(4096) NOT NULL, c_user_session text NOT NULL,
c_old_session varchar(4096) DEFAULT '', c_old_session text DEFAULT '',
c_session_started int(11) NOT NULL, c_session_started int(11) NOT NULL,
c_refresh_token varchar(4096) DEFAULT '', c_refresh_token text DEFAULT '',
c_access_token_expires_in int(11) DEFAULT '', c_access_token_expires_in int(11) DEFAULT '',
c_refresh_token_expires_in int(11) DEFAULT NULL, c_refresh_token_expires_in int(11) DEFAULT NULL,
PRIMARY KEY (c_user_session) PRIMARY KEY (c_user_session)