mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-15 23:59:42 +02:00
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:
parent
ca077b7e74
commit
9338a14042
@ -17947,3 +17947,6 @@
|
|||||||
in the RDDatePicker calendar.
|
in the RDDatePicker calendar.
|
||||||
2018-10-29 Patrick Linstruth <patrick@deltecent.com>
|
2018-10-29 Patrick Linstruth <patrick@deltecent.com>
|
||||||
* Updated the 'README' file with RDDbConfig utility.
|
* 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.
|
||||||
|
@ -2687,13 +2687,11 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
|||||||
// Revert 284
|
// Revert 284
|
||||||
//
|
//
|
||||||
if((cur_schema==284)&&(set_schema<cur_schema)) {
|
if((cur_schema==284)&&(set_schema<cur_schema)) {
|
||||||
/*
|
|
||||||
sql=QString("alter table RDAIRPLAY add column INSTANCE int unsigned ")+
|
sql=QString("alter table RDAIRPLAY add column INSTANCE int unsigned ")+
|
||||||
"not null default 0 after STATION";
|
"not null default 0 after STATION";
|
||||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
for(int i=9;i>=0;i--) {
|
for(int i=9;i>=0;i--) {
|
||||||
sql=QString("alter table RDAIRPLAY add column ")+
|
sql=QString("alter table RDAIRPLAY add column ")+
|
||||||
QString().sprintf("STOP_RML%d char(255) after INSTANCE",i);
|
QString().sprintf("STOP_RML%d char(255) after INSTANCE",i);
|
||||||
|
@ -7008,12 +7008,10 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((cur_schema<284)&&(set_schema>cur_schema)) {
|
if((cur_schema<284)&&(set_schema>cur_schema)) {
|
||||||
/*
|
|
||||||
sql=QString("alter table RDAIRPLAY drop column INSTANCE");
|
sql=QString("alter table RDAIRPLAY drop column INSTANCE");
|
||||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
for(int i=0;i<10;i++) {
|
for(int i=0;i<10;i++) {
|
||||||
sql=QString("alter table RDAIRPLAY ")+
|
sql=QString("alter table RDAIRPLAY ")+
|
||||||
QString().sprintf("drop column CARD%d",i);
|
QString().sprintf("drop column CARD%d",i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user