mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 06:58:01 +02:00
2023-12-07 Fred Gleason <fredg@paravelsystems.com>
* Modified the schema reversion 348=>347 in rddbmgr(8) to remove out-of-bounds SoundPanel button entries. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
5a532bc77f
commit
f59c216a38
@ -24525,3 +24525,6 @@
|
||||
the Operations Guide.
|
||||
* Documented the 'Source' and 'Ingest' fields for Cuts in the
|
||||
'RDLibrary' chapter of the Operations Guide.
|
||||
2023-12-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified the schema reversion 348=>347 in rddbmgr(8) to remove
|
||||
out-of-bounds SoundPanel button entries.
|
||||
|
@ -459,11 +459,28 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
// Revert 348
|
||||
//
|
||||
if((cur_schema==348)&&(set_schema<cur_schema)) {
|
||||
// Nothing to do!
|
||||
//
|
||||
// Remove "out-of-bounds" data for SoundPanel buttons so they don't
|
||||
// cause segfaults in "naive" v3.x code.
|
||||
//
|
||||
sql=QString("delete from `PANELS` where ")+
|
||||
"`ROW_NO`>=5 || `COLUMN_NO`>=5";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
sql=QString("delete from `EXTENDED_PANELS` where ")+
|
||||
"`ROW_NO`>=7 || `COLUMN_NO`>=9";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
* Boundary between v3.x and v4.x
|
||||
************************************************************************/
|
||||
|
||||
//
|
||||
// Revert 347
|
||||
//
|
||||
|
@ -10787,6 +10787,10 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
* Boundary between v3.x and v4.x
|
||||
************************************************************************/
|
||||
|
||||
if((cur_schema<348)&&(set_schema>cur_schema)) {
|
||||
CheckSchedCodeRules(false);
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
|
Loading…
x
Reference in New Issue
Block a user