MythTV  master
Functions | Variables
mythplugins/mythnews/mythnews/dbcheck.cpp File Reference
#include <iostream>
#include <QString>
#include <QSqlError>
#include <mythcontext.h>
#include <mythdb.h>
#include "dbcheck.h"
Include dependency graph for mythplugins/mythnews/mythnews/dbcheck.cpp:

Go to the source code of this file.

Functions

static bool UpdateDBVersionNumber (const QString &newnumber)
 
static bool performActualUpdate (const QString updates[], const QString &version, QString &dbver)
 
bool UpgradeNewsDatabaseSchema (void)
 

Variables

const QString currentDatabaseVersion = "1001"
 

Function Documentation

◆ UpdateDBVersionNumber()

static bool UpdateDBVersionNumber ( const QString &  newnumber)
static

Definition at line 17 of file mythplugins/mythnews/mythnews/dbcheck.cpp.

Referenced by performActualUpdate().

◆ performActualUpdate()

static bool performActualUpdate ( const QString  updates[],
const QString &  version,
QString &  dbver 
)
static

Definition at line 32 of file mythplugins/mythnews/mythnews/dbcheck.cpp.

Referenced by UpgradeNewsDatabaseSchema().

◆ UpgradeNewsDatabaseSchema()

bool UpgradeNewsDatabaseSchema ( void  )

Definition at line 68 of file mythplugins/mythnews/mythnews/dbcheck.cpp.

Referenced by mythplugin_init().

Variable Documentation

◆ currentDatabaseVersion

const QString currentDatabaseVersion = "1001"

Definition at line 15 of file mythplugins/mythnews/mythnews/dbcheck.cpp.

Referenced by UpgradeNewsDatabaseSchema().