2017-12-01 Fred Gleason <fredg@paravelsystems.com>

* Added an 'Engine=' directive to the [MySQL] section of
	rd.conf(5).
	* Refactored the schema update code to use standard form
	in rdadmin(1).
This commit is contained in:
Fred Gleason
2017-12-01 17:37:37 -05:00
parent cbba0eb10a
commit a8ae9f9bfa
54 changed files with 4210 additions and 4680 deletions

View File

@@ -2,7 +2,7 @@
//
// A Database Check/Repair Tool for Rivendell.
//
// (C) Copyright 2002-2006,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2006,2016-2017 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -357,7 +357,8 @@ void MainObject::CheckClocks()
(const char *)q->value(0).toString());
fflush(NULL);
if(UserResponse()) {
sql=RDCreateClockTableSql(RDClock::tableName(q->value(0).toString()));
sql=RDCreateClockTableSql(RDClock::tableName(q->value(0).toString()),
rdconfig);
q2=new QSqlQuery(sql);
delete q2;
}
@@ -392,7 +393,7 @@ void MainObject::CheckEvents()
(const char *)q->value(0).toString());
fflush(NULL);
if(UserResponse()) {
sql=RDCreateLogTableSql(eventname+"_PRE");
sql=RDCreateLogTableSql(eventname+"_PRE",rdconfig);
q2=new QSqlQuery(sql);
delete q2;
}
@@ -409,7 +410,7 @@ void MainObject::CheckEvents()
(const char *)q->value(0).toString());
fflush(NULL);
if(UserResponse()) {
sql=RDCreateLogTableSql(eventname+"_POST");
sql=RDCreateLogTableSql(eventname+"_POST",rdconfig);
q2=new QSqlQuery(sql);
delete q2;
}