mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added an entry for the Broadcast Tools SRC-16 in 'docs/SWITCHERS.txt'. * Added a 'CUT_EVENTS' table to the database. * Added a 'DECK_EVENTS' table to the database. * Incremented the database version to 256. * Implemented a 'Cut Event' ['CE'] RML. * Added a 'Event Carts' section to the Edit Deck dialog in 'rdadmin/edit_deck.cpp' and 'rdadmin/edit_deck.h'.
This commit is contained in:
@@ -167,6 +167,10 @@ void MainObject::Revert(int schema) const
|
||||
case 255:
|
||||
Revert255();
|
||||
break;
|
||||
|
||||
case 256:
|
||||
Revert256();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -406,6 +410,23 @@ void MainObject::Revert255() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert256() const
|
||||
{
|
||||
QString sql;
|
||||
QSqlQuery *q;
|
||||
|
||||
sql=QString("drop table CUT_EVENTS");
|
||||
q=new QSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
sql=QString("drop table DECK_EVENTS");
|
||||
q=new QSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
SetVersion(255);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -445,6 +466,7 @@ int MainObject::MapSchema(const QString &ver)
|
||||
version_map["2.10"]=242;
|
||||
version_map["2.11"]=245;
|
||||
version_map["2.12"]=254;
|
||||
version_map["2.13"]=255;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
@@ -51,6 +51,7 @@ class MainObject : public QObject
|
||||
void Revert253() const;
|
||||
void Revert254() const;
|
||||
void Revert255() const;
|
||||
void Revert256() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
Reference in New Issue
Block a user