2018-11-08 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rddbmgr(8) that attempted to drop the
	'RDAIRPLAY.INSTANCE' field when processing schema update 284.
This commit is contained in:
Fred Gleason 2018-11-08 11:59:18 -05:00
parent 0d271e168c
commit b41d35ff40
3 changed files with 3 additions and 9 deletions

View File

@ -17990,3 +17990,6 @@
* Fixed buffer overflow bugs in the rd_trimaudio(7) rivcwebapi call.
2018-11-07 Fred Gleason <fredg@paravelsystems.com>
* Modified rd_deleteaudio(7) in the rivwebcapi to process UTF-8.
2018-11-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rddbmgr(8) that attempted to drop the
'RDAIRPLAY.INSTANCE' field when processing schema update 284.

View File

@ -2687,11 +2687,6 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
// Revert 284
//
if((cur_schema==284)&&(set_schema<cur_schema)) {
sql=QString("alter table RDAIRPLAY add column INSTANCE int unsigned ")+
"not null default 0 after STATION";
if(!RDSqlQuery::apply(sql,err_msg)) {
return false;
}
for(int i=9;i>=0;i--) {
sql=QString("alter table RDAIRPLAY add column ")+
QString().sprintf("STOP_RML%d char(255) after INSTANCE",i);

View File

@ -7008,10 +7008,6 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
}
if((cur_schema<284)&&(set_schema>cur_schema)) {
sql=QString("alter table RDAIRPLAY drop column INSTANCE");
if(!RDSqlQuery::apply(sql,err_msg)) {
return false;
}
for(int i=0;i<10;i++) {
sql=QString("alter table RDAIRPLAY ")+
QString().sprintf("drop column CARD%d",i);