2020-09-21 Fred Gleason <fredg@paravelsystems.com>

* Modified the type of the 'FEED_IMAGES.DATA' database field
	to 'longblob'.
	* Incremented the database version to 336.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2020-09-22 15:44:51 -04:00
parent 5a549b7866
commit d534aacfd1
6 changed files with 29 additions and 3 deletions

View File

@ -20299,3 +20299,7 @@
* Added a 'RemovePodcast' method to the Web API.
* Added a 'PostRss' method to the Web API.
* Added a 'RemoveRss' method to the Web API.
2020-09-21 Fred Gleason <fredg@paravelsystems.com>
* Modified the type of the 'FEED_IMAGES.DATA' database field
to 'longblob'.
* Incremented the database version to 336.

View File

@ -13,4 +13,4 @@ HEIGHT int(11) signed Pixels
DEPTH int(11) signed Bits/pixel
DESCRIPTION varchar(191)
FILE_EXTENSION varchar(10)
DATA mediumblob
DATA longblob

View File

@ -24,7 +24,7 @@
/*
* Current Database Version
*/
#define RD_VERSION_DATABASE 335
#define RD_VERSION_DATABASE 336
#endif // DBVERSION_H

View File

@ -40,6 +40,19 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
// NEW SCHEMA REVERSIONS GO HERE...
//
// Revert 336
//
if((cur_schema==336)&&(set_schema<cur_schema)) {
sql=QString("alter table FEED_IMAGES modify column ")+
"DATA mediumblob not null";
if(!RDSqlQuery::apply(sql,err_msg)) {
return false;
}
WriteSchemaVersion(--cur_schema);
}
//
// Revert 335
//

View File

@ -161,7 +161,7 @@ void MainObject::InitializeSchemaMap() {
global_version_map["3.2"]=311;
global_version_map["3.3"]=314;
global_version_map["3.4"]=317;
global_version_map["4.0"]=335;
global_version_map["4.0"]=336;
}

View File

@ -10257,6 +10257,15 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
WriteSchemaVersion(++cur_schema);
}
if((cur_schema<336)&&(set_schema>cur_schema)) {
sql=QString("alter table FEED_IMAGES modify column ")+
"DATA longblob not null";
if(!RDSqlQuery::apply(sql,err_msg)) {
return false;
}
WriteSchemaVersion(++cur_schema);
}