mirror of https://github.com/acanas/swad-core.git
Version 20.51.35: Mar 24, 2021 Expanded folders database table renamed.
This commit is contained in:
parent
577f485e41
commit
2e7338e096
|
@ -163,9 +163,9 @@ CREATE TABLE IF NOT EXISTS brw_clipboards (
|
||||||
INDEX(FileBrowser,Cod),
|
INDEX(FileBrowser,Cod),
|
||||||
INDEX(WorksUsrCod));
|
INDEX(WorksUsrCod));
|
||||||
--
|
--
|
||||||
-- Table brw_expanded_folders: stores the expanded folders for each user
|
-- Table brw_expanded: stores the expanded folders for each user
|
||||||
--
|
--
|
||||||
CREATE TABLE IF NOT EXISTS brw_expanded_folders (
|
CREATE TABLE IF NOT EXISTS brw_expanded (
|
||||||
UsrCod INT NOT NULL,
|
UsrCod INT NOT NULL,
|
||||||
FileBrowser TINYINT NOT NULL,
|
FileBrowser TINYINT NOT NULL,
|
||||||
Cod INT NOT NULL DEFAULT -1,
|
Cod INT NOT NULL DEFAULT -1,
|
||||||
|
|
|
@ -600,13 +600,17 @@ TODO: Salvador Romero Cort
|
||||||
|
|
||||||
TODO: FIX BUG, URGENT! En las fechas como parámetro Dat_WriteParamsIniEndDates(), por ejemplo al cambiar el color de la gráfica de accesos por día y hora, no se respeta la zona horaria.
|
TODO: FIX BUG, URGENT! En las fechas como parámetro Dat_WriteParamsIniEndDates(), por ejemplo al cambiar el color de la gráfica de accesos por día y hora, no se respeta la zona horaria.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 20.51.34 (2021-03-23)"
|
#define Log_PLATFORM_VERSION "SWAD 20.51.35 (2021-03-24)"
|
||||||
#define CSS_FILE "swad20.45.css"
|
#define CSS_FILE "swad20.45.css"
|
||||||
#define JS_FILE "swad20.6.2.js"
|
#define JS_FILE "swad20.6.2.js"
|
||||||
/*
|
/*
|
||||||
TODO: Rename CENTRE to CENTER in help wiki.
|
TODO: Rename CENTRE to CENTER in help wiki.
|
||||||
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
||||||
|
|
||||||
|
Version 20.51.35: Mar 24, 2021 Expanded folders database table renamed. (308630 lines)
|
||||||
|
1 change necessary in database:
|
||||||
|
RENAME TABLE brw_expanded_folders TO brw_expanded;
|
||||||
|
|
||||||
Version 20.51.34: Mar 23, 2021 Groups database tables renamed. (308624 lines)
|
Version 20.51.34: Mar 23, 2021 Groups database tables renamed. (308624 lines)
|
||||||
2 changes necessary in database:
|
2 changes necessary in database:
|
||||||
RENAME TABLE crs_grp_types TO grp_types;
|
RENAME TABLE crs_grp_types TO grp_types;
|
||||||
|
|
|
@ -409,9 +409,9 @@ mysql> DESCRIBE brw_clipboards;
|
||||||
"INDEX(FileBrowser,Cod),"
|
"INDEX(FileBrowser,Cod),"
|
||||||
"INDEX(WorksUsrCod))");
|
"INDEX(WorksUsrCod))");
|
||||||
|
|
||||||
/***** Table brw_expanded_folders *****/
|
/***** Table brw_expanded *****/
|
||||||
/*
|
/*
|
||||||
mysql> DESCRIBE brw_expanded_folders;
|
mysql> DESCRIBE brw_expanded;
|
||||||
+-------------+------------+------+-----+---------+-------+
|
+-------------+------------+------+-----+---------+-------+
|
||||||
| Field | Type | Null | Key | Default | Extra |
|
| Field | Type | Null | Key | Default | Extra |
|
||||||
+-------------+------------+------+-----+---------+-------+
|
+-------------+------------+------+-----+---------+-------+
|
||||||
|
@ -424,7 +424,7 @@ mysql> DESCRIBE brw_expanded_folders;
|
||||||
+-------------+------------+------+-----+---------+-------+
|
+-------------+------------+------+-----+---------+-------+
|
||||||
6 rows in set (0.00 sec)
|
6 rows in set (0.00 sec)
|
||||||
*/
|
*/
|
||||||
DB_CreateTable ("CREATE TABLE IF NOT EXISTS brw_expanded_folders ("
|
DB_CreateTable ("CREATE TABLE IF NOT EXISTS brw_expanded ("
|
||||||
"UsrCod INT NOT NULL,"
|
"UsrCod INT NOT NULL,"
|
||||||
"FileBrowser TINYINT NOT NULL,"
|
"FileBrowser TINYINT NOT NULL,"
|
||||||
"Cod INT NOT NULL DEFAULT -1,"
|
"Cod INT NOT NULL DEFAULT -1,"
|
||||||
|
|
|
@ -4189,7 +4189,7 @@ void Brw_RemoveInsFilesFromDB (long InsCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of an institution",
|
DB_QueryDELETE ("can not remove expanded folders of an institution",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_INS,
|
(unsigned) Brw_ADMI_DOC_INS,
|
||||||
|
@ -4257,7 +4257,7 @@ void Brw_RemoveCtrFilesFromDB (long CtrCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a center",
|
DB_QueryDELETE ("can not remove expanded folders of a center",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_CTR,
|
(unsigned) Brw_ADMI_DOC_CTR,
|
||||||
|
@ -4321,7 +4321,7 @@ void Brw_RemoveDegFilesFromDB (long DegCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a degree",
|
DB_QueryDELETE ("can not remove expanded folders of a degree",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_DEG,
|
(unsigned) Brw_ADMI_DOC_DEG,
|
||||||
|
@ -4450,7 +4450,7 @@ void Brw_RemoveCrsFilesFromDB (long CrsCod)
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
/* Remove from course file zones */
|
/* Remove from course file zones */
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a course",
|
DB_QueryDELETE ("can not remove expanded folders of a course",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u,%u,%u,%u,%u,%u,%u)"
|
" WHERE FileBrowser IN (%u,%u,%u,%u,%u,%u,%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_CRS,
|
(unsigned) Brw_ADMI_DOC_CRS,
|
||||||
|
@ -4465,7 +4465,7 @@ void Brw_RemoveCrsFilesFromDB (long CrsCod)
|
||||||
|
|
||||||
/* Remove from group file zones */
|
/* Remove from group file zones */
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a course",
|
DB_QueryDELETE ("can not remove expanded folders of a course",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u,%u,%u)"
|
" WHERE FileBrowser IN (%u,%u,%u,%u)"
|
||||||
" AND Cod IN %s",
|
" AND Cod IN %s",
|
||||||
(unsigned) Brw_ADMI_DOC_GRP,
|
(unsigned) Brw_ADMI_DOC_GRP,
|
||||||
|
@ -4476,7 +4476,7 @@ void Brw_RemoveCrsFilesFromDB (long CrsCod)
|
||||||
|
|
||||||
/* Remove from project file zones */
|
/* Remove from project file zones */
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a course",
|
DB_QueryDELETE ("can not remove expanded folders of a course",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod IN %s",
|
" AND Cod IN %s",
|
||||||
(unsigned) Brw_ADMI_DOC_PRJ,
|
(unsigned) Brw_ADMI_DOC_PRJ,
|
||||||
|
@ -4657,7 +4657,7 @@ void Brw_RemoveGrpFilesFromDB (long GrpCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a group",
|
DB_QueryDELETE ("can not remove expanded folders of a group",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u,%u,%u)"
|
" WHERE FileBrowser IN (%u,%u,%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_GRP,
|
(unsigned) Brw_ADMI_DOC_GRP,
|
||||||
|
@ -4731,7 +4731,7 @@ void Brw_RemovePrjFilesFromDB (long PrjCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a project",
|
DB_QueryDELETE ("can not remove expanded folders of a project",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod=%ld",
|
" AND Cod=%ld",
|
||||||
(unsigned) Brw_ADMI_DOC_PRJ,
|
(unsigned) Brw_ADMI_DOC_PRJ,
|
||||||
|
@ -4783,7 +4783,7 @@ void Brw_RemoveSomeInfoAboutCrsUsrFilesFromDB (long UsrCod,long CrsCod)
|
||||||
{
|
{
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders for a user in a course",
|
DB_QueryDELETE ("can not remove expanded folders for a user in a course",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND ("
|
" AND ("
|
||||||
"(FileBrowser IN (%u,%u,%u,%u,%u,%u,%u,%u)"
|
"(FileBrowser IN (%u,%u,%u,%u,%u,%u,%u,%u)"
|
||||||
|
@ -4899,7 +4899,7 @@ void Brw_RemoveWrkFilesFromDB (long CrsCod,long UsrCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders of a group",
|
DB_QueryDELETE ("can not remove expanded folders of a group",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE FileBrowser IN (%u,%u)"
|
" WHERE FileBrowser IN (%u,%u)"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
" AND WorksUsrCod=%ld",
|
" AND WorksUsrCod=%ld",
|
||||||
|
@ -4957,7 +4957,7 @@ void Brw_RemoveUsrFilesFromDB (long UsrCod)
|
||||||
|
|
||||||
/***** Remove from database expanded folders *****/
|
/***** Remove from database expanded folders *****/
|
||||||
DB_QueryDELETE ("can not remove expanded folders for a user",
|
DB_QueryDELETE ("can not remove expanded folders for a user",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld",
|
" WHERE UsrCod=%ld",
|
||||||
UsrCod);
|
UsrCod);
|
||||||
|
|
||||||
|
@ -7387,7 +7387,7 @@ static void Brw_InsertFolderInExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
/***** Update path time in table of expanded folders *****/
|
/***** Update path time in table of expanded folders *****/
|
||||||
// Path must be stored with final '/'
|
// Path must be stored with final '/'
|
||||||
DB_QueryINSERT ("can not expand the content of a folder",
|
DB_QueryINSERT ("can not expand the content of a folder",
|
||||||
"INSERT INTO brw_expanded_folders"
|
"INSERT INTO brw_expanded"
|
||||||
" (UsrCod,FileBrowser,Cod,WorksUsrCod,Path,ClickTime)"
|
" (UsrCod,FileBrowser,Cod,WorksUsrCod,Path,ClickTime)"
|
||||||
" VALUES"
|
" VALUES"
|
||||||
" (%ld,%u,%ld,%ld,'%s/',NOW())",
|
" (%ld,%u,%ld,%ld,'%s/',NOW())",
|
||||||
|
@ -7412,7 +7412,7 @@ static void Brw_UpdateClickTimeOfThisFileBrowserInExpandedFolders (void)
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
DB_QueryUPDATE ("can not update expanded folder",
|
DB_QueryUPDATE ("can not update expanded folder",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET ClickTime=NOW()"
|
" SET ClickTime=NOW()"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
|
@ -7424,7 +7424,7 @@ static void Brw_UpdateClickTimeOfThisFileBrowserInExpandedFolders (void)
|
||||||
WorksUsrCod);
|
WorksUsrCod);
|
||||||
else
|
else
|
||||||
DB_QueryUPDATE ("can not update expanded folder",
|
DB_QueryUPDATE ("can not update expanded folder",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET ClickTime=NOW()"
|
" SET ClickTime=NOW()"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
|
@ -7435,7 +7435,7 @@ static void Brw_UpdateClickTimeOfThisFileBrowserInExpandedFolders (void)
|
||||||
}
|
}
|
||||||
else // Briefcase
|
else // Briefcase
|
||||||
DB_QueryUPDATE ("can not update expanded folder",
|
DB_QueryUPDATE ("can not update expanded folder",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET ClickTime=NOW()"
|
" SET ClickTime=NOW()"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u",
|
" AND FileBrowser=%u",
|
||||||
|
@ -7458,7 +7458,7 @@ static void Brw_RemoveFolderFromExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
DB_QueryDELETE ("can not contract the content of a folder",
|
DB_QueryDELETE ("can not contract the content of a folder",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7468,7 +7468,7 @@ static void Brw_RemoveFolderFromExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
Cod,WorksUsrCod,Path);
|
Cod,WorksUsrCod,Path);
|
||||||
else
|
else
|
||||||
DB_QueryDELETE ("can not contract the content of a folder",
|
DB_QueryDELETE ("can not contract the content of a folder",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7479,7 +7479,7 @@ static void Brw_RemoveFolderFromExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
}
|
}
|
||||||
else // Briefcase
|
else // Briefcase
|
||||||
DB_QueryDELETE ("can not contract the content of a folder",
|
DB_QueryDELETE ("can not contract the content of a folder",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Path='%s/'",
|
" AND Path='%s/'",
|
||||||
|
@ -7502,7 +7502,7 @@ static void Brw_RemoveAffectedExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
DB_QueryDELETE ("can not remove expanded folders",
|
DB_QueryDELETE ("can not remove expanded folders",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7512,7 +7512,7 @@ static void Brw_RemoveAffectedExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
Cod,WorksUsrCod,Path);
|
Cod,WorksUsrCod,Path);
|
||||||
else
|
else
|
||||||
DB_QueryDELETE ("can not remove expanded folders",
|
DB_QueryDELETE ("can not remove expanded folders",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7523,7 +7523,7 @@ static void Brw_RemoveAffectedExpandedFolders (const char Path[PATH_MAX + 1])
|
||||||
}
|
}
|
||||||
else // Briefcase
|
else // Briefcase
|
||||||
DB_QueryDELETE ("can not remove expanded folders",
|
DB_QueryDELETE ("can not remove expanded folders",
|
||||||
"DELETE FROM brw_expanded_folders"
|
"DELETE FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Path LIKE '%s/%%'",
|
" AND Path LIKE '%s/%%'",
|
||||||
|
@ -7551,7 +7551,7 @@ static void Brw_RenameAffectedExpandedFolders (Brw_FileBrowser_t FileBrowser,
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
DB_QueryUPDATE ("can not update expanded folders",
|
DB_QueryUPDATE ("can not update expanded folders",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
|
@ -7564,7 +7564,7 @@ static void Brw_RenameAffectedExpandedFolders (Brw_FileBrowser_t FileBrowser,
|
||||||
OldPath);
|
OldPath);
|
||||||
else
|
else
|
||||||
DB_QueryUPDATE ("can not update expanded folders",
|
DB_QueryUPDATE ("can not update expanded folders",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
|
@ -7579,7 +7579,7 @@ static void Brw_RenameAffectedExpandedFolders (Brw_FileBrowser_t FileBrowser,
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
DB_QueryUPDATE ("can not update expanded folders",
|
DB_QueryUPDATE ("can not update expanded folders",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
||||||
" WHERE FileBrowser=%u"
|
" WHERE FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7591,7 +7591,7 @@ static void Brw_RenameAffectedExpandedFolders (Brw_FileBrowser_t FileBrowser,
|
||||||
OldPath);
|
OldPath);
|
||||||
else
|
else
|
||||||
DB_QueryUPDATE ("can not update expanded folders",
|
DB_QueryUPDATE ("can not update expanded folders",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
||||||
" WHERE FileBrowser=%u"
|
" WHERE FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7603,7 +7603,7 @@ static void Brw_RenameAffectedExpandedFolders (Brw_FileBrowser_t FileBrowser,
|
||||||
}
|
}
|
||||||
else // Briefcase
|
else // Briefcase
|
||||||
DB_QueryUPDATE ("can not update expanded folders",
|
DB_QueryUPDATE ("can not update expanded folders",
|
||||||
"UPDATE brw_expanded_folders"
|
"UPDATE brw_expanded"
|
||||||
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
" SET Path=CONCAT('%s','/',SUBSTRING(Path,%u))"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
|
@ -7630,7 +7630,8 @@ static bool Brw_GetIfExpandedTree (const char Path[PATH_MAX + 1])
|
||||||
{
|
{
|
||||||
if (WorksUsrCod > 0)
|
if (WorksUsrCod > 0)
|
||||||
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
||||||
"SELECT COUNT(*) FROM brw_expanded_folders"
|
"SELECT COUNT(*)"
|
||||||
|
" FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7642,7 +7643,8 @@ static bool Brw_GetIfExpandedTree (const char Path[PATH_MAX + 1])
|
||||||
Path) != 0);
|
Path) != 0);
|
||||||
else
|
else
|
||||||
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
||||||
"SELECT COUNT(*) FROM brw_expanded_folders"
|
"SELECT COUNT(*)"
|
||||||
|
" FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Cod=%ld"
|
" AND Cod=%ld"
|
||||||
|
@ -7654,7 +7656,8 @@ static bool Brw_GetIfExpandedTree (const char Path[PATH_MAX + 1])
|
||||||
}
|
}
|
||||||
else // Briefcase
|
else // Briefcase
|
||||||
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
Expanded = (DB_QueryCOUNT ("can not get check if a folder is expanded",
|
||||||
"SELECT COUNT(*) FROM brw_expanded_folders"
|
"SELECT COUNT(*)"
|
||||||
|
" FROM brw_expanded"
|
||||||
" WHERE UsrCod=%ld"
|
" WHERE UsrCod=%ld"
|
||||||
" AND FileBrowser=%u"
|
" AND FileBrowser=%u"
|
||||||
" AND Path='%s/'",
|
" AND Path='%s/'",
|
||||||
|
@ -7724,7 +7727,7 @@ void Brw_RemoveExpiredExpandedFolders (void)
|
||||||
{
|
{
|
||||||
/***** Remove all expired clipboards *****/
|
/***** Remove all expired clipboards *****/
|
||||||
DB_QueryDELETE ("can not remove old expanded folders",
|
DB_QueryDELETE ("can not remove old expanded folders",
|
||||||
"DELETE LOW_PRIORITY FROM brw_expanded_folders"
|
"DELETE LOW_PRIORITY FROM brw_expanded"
|
||||||
" WHERE ClickTime<FROM_UNIXTIME(UNIX_TIMESTAMP()-%lu)",
|
" WHERE ClickTime<FROM_UNIXTIME(UNIX_TIMESTAMP()-%lu)",
|
||||||
Cfg_TIME_TO_DELETE_BROWSER_EXPANDED_FOLDERS);
|
Cfg_TIME_TO_DELETE_BROWSER_EXPANDED_FOLDERS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue