2019-04-23 Fred Gleason <fredg@paravelsystems.com>

* Added a 'STACK_SCHED_CODES' table to the database.
	* Dropped the 'STACK_LINES.SCHED_CODES' field from the database.
	* Incremented the database version to 308.
	* Renamed the 'SchedCartList' class to 'RDSchedCartList' and
	refactored it to be idiomatic Qt.
	* Renamed the 'SchedRulesList' class to 'RDSchedRulesList'.
This commit is contained in:
Fred Gleason
2019-04-23 18:30:30 -04:00
parent 9f95fec5e1
commit 5589d3fc97
27 changed files with 452 additions and 324 deletions

View File

@@ -1410,6 +1410,15 @@ void RDSvc::remove(const QString &name)
}
delete q;
sql=QString("select ID from STACK_LINES where ")+
"SERVICE_NAME=\""+RDEscapeString(name)+"\"";
q=new RDSqlQuery(sql);
while(q->next()) {
sql=QString("delete from STACK_SCHED_CODES where ")+
QString().sprintf("STACK_LINES_ID=%u",q->value(0).toUInt());
RDSqlQuery::apply(sql);
}
delete q;
sql=QString("delete from STACK_LINES where ")+
"SERVICE_NAME=\""+RDEscapeString(name)+"\"";
RDSqlQuery::apply(sql);