mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2020-04-16 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'EVENTS.POST_POINT' field from the database. * Removed the 'LOG_LINES.POST_POINT' field from the database. * Incremented the database version tp 315. * Removed 'RDEventLine::postPoint()' and 'RDEventLine::setPostPoint()' methods. * Removed the 'Post Point' checkbox from the 'Editing Event' dialog in rdlogmanager(1).
This commit is contained in:
@@ -40,6 +40,25 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
|
||||
// NEW SCHEMA REVERSIONS GO HERE...
|
||||
|
||||
//
|
||||
// Revert 315
|
||||
//
|
||||
if((cur_schema==315)&&(set_schema<cur_schema)) {
|
||||
sql=QString("alter table EVENTS add column POST_POINT enum('N','Y') ")+
|
||||
"default 'N' after GRACE_TIME";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
sql=QString("alter table LOG_LINES add column POST_POINT enum('N','Y') ")+
|
||||
"default 'N' after TIME_TYPE";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
//
|
||||
// Revert 314
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user