mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-09 22:43:11 +02:00
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:
parent
5a549b7866
commit
d534aacfd1
@ -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.
|
||||
|
@ -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
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 335
|
||||
#define RD_VERSION_DATABASE 336
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@ -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
|
||||
//
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user