mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-29 15:12:34 +02:00
2023-06-09 Fred Gleason <fredg@paravelsystems.com>
* Dropped the 'SYSTEM.MAX_POST_LENGTH' field from the database. * Incremented the database version to 370. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
4e88ca5f0c
commit
7e0bdbb4a6
@ -24227,3 +24227,6 @@
|
||||
'RDSystem::setMaxPostLength()' methods.
|
||||
* Removed the 'Maximum Remote Post Length' control from the
|
||||
'System-Wide Settings' dialog in rdadmin(1).
|
||||
2023-06-09 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Dropped the 'SYSTEM.MAX_POST_LENGTH' field from the database.
|
||||
* Incremented the database version to 370.
|
||||
|
@ -9,7 +9,6 @@ REALM_NAME varchar(64)
|
||||
SAMPLE_RATE int(10) unsigned
|
||||
DUP_CART_TITLE enum('N','Y')
|
||||
FIX_DUP_CART_TITLES enum('N','Y')
|
||||
MAX_POST_LENGTH int(10) unsigned
|
||||
ISCI_XREFERENCE_PATH varchar(191)
|
||||
TEMP_CART_GROUP varchar(10) From 'GROUPS.NAME'
|
||||
SHOW_USER_LIST enum('N','Y')
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 369
|
||||
#define RD_VERSION_DATABASE 370
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@ -41,6 +41,20 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
// NEW SCHEMA REVERSIONS GO HERE...
|
||||
|
||||
|
||||
//
|
||||
// Revert 370
|
||||
//
|
||||
if((cur_schema==370)&&(set_schema<cur_schema)) {
|
||||
sql=QString("alter table `SYSTEM` ")+
|
||||
"add column `MAX_POST_LENGTH` int unsigned default 10000000 "+
|
||||
"after `FIX_DUP_CART_TITLES`";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
//
|
||||
// Revert 369
|
||||
//
|
||||
|
@ -160,7 +160,7 @@ void MainObject::InitializeSchemaMap() {
|
||||
global_version_map["3.4"]=317;
|
||||
global_version_map["3.5"]=346;
|
||||
global_version_map["3.6"]=347;
|
||||
global_version_map["4.0"]=369;
|
||||
global_version_map["4.0"]=370;
|
||||
}
|
||||
|
||||
|
||||
|
@ -11402,6 +11402,12 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
if((cur_schema<370)&&(set_schema>cur_schema)) {
|
||||
DropColumn("SYSTEM","MAX_POST_LENGTH");
|
||||
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
|
||||
// NEW SCHEMA UPDATES GO HERE...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user