2018-10-29 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the code to implement schema update/reversion 284
	that did not properly add/drop the 'RDAIRPLAY.INSTANCE' field.
This commit is contained in:
Fred Gleason 2018-10-29 16:33:41 -04:00
parent ca077b7e74
commit 9338a14042
3 changed files with 3 additions and 4 deletions

View File

@ -17947,3 +17947,6 @@
in the RDDatePicker calendar.
2018-10-29 Patrick Linstruth <patrick@deltecent.com>
* Updated the 'README' file with RDDbConfig utility.
2018-10-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the code to implement schema update/reversion 284
that did not properly add/drop the 'RDAIRPLAY.INSTANCE' field.

View File

@ -2687,13 +2687,11 @@ 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,12 +7008,10 @@ 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);