mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2022-10-18 Fred Gleason <fredg@paravelsystems.com>
* Added values for the `IMPORTER_TEMPLATES.TRANS_TYPE_*` and `TIMPORTER_TEMPLATES.TIME_TYPE_*` parser settings for the 'Rivendell Standard Import' profile. * Incremented the database version to 364. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -41,6 +41,23 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
// NEW SCHEMA REVERSIONS GO HERE...
|
||||
|
||||
|
||||
//
|
||||
// Revert 364
|
||||
//
|
||||
if((cur_schema==364)&&(set_schema<cur_schema)) {
|
||||
sql=QString("update `IMPORT_TEMPLATES` set ")+
|
||||
"`TRANS_TYPE_OFFSET`=NULL,"+
|
||||
"`TRANS_TYPE_LENGTH`=NULL,"+
|
||||
"`TIME_TYPE_OFFSET`=NULL,"+
|
||||
"`TIME_TYPE_LENGTH`=NULL "+
|
||||
"where `NAME`='Rivendell Standard Import'";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
//
|
||||
// Revert 363
|
||||
//
|
||||
|
Reference in New Issue
Block a user