MythTV  master
Functions
dbcheck.h File Reference
#include "libmythbase/mythdbcheck.h"
#include "libmythtv/mythtvexp.h"
Include dependency graph for dbcheck.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MTV_PUBLIC bool InitializeMythSchema (void)
 command to get the the initial database layout from an empty database: More...
 
MTV_PUBLIC bool UpgradeTVDatabaseSchema (bool upgradeAllowed=false, bool upgradeIfNoUI=false, bool informSystemd=false)
 
MTV_PUBLIC DBUpdates getRecordingExtenderDbInfo (int version)
 

Function Documentation

◆ InitializeMythSchema()

MTV_PUBLIC bool InitializeMythSchema ( void  )

command to get the the initial database layout from an empty database:

mysqldump \ –skip-comments –skip-opt –compact –skip-quote-names \ –create-options –ignore-table=mythconverg.schemalock mythconverg | \ sed '/^(SET|INS).*;$/d;/^\/*!40101.*$/d;s/^.*[^;]$/"&"/;s/^).*;$/"&",/'

command to get the initial data:

mysqldump \ –skip-comments –skip-opt –compact –skip-quote-names -t \ –ignore-table=mythconverg.logging mythconverg | sed -e 's/^.*$/"&",/' -e 's#\#\\#g'

don't forget to delete host specific data

Definition at line 4079 of file dbcheck.cpp.

Referenced by doUpgradeTVDatabaseSchema(), and main().

◆ UpgradeTVDatabaseSchema()

MTV_PUBLIC bool UpgradeTVDatabaseSchema ( bool  upgradeAllowed = false,
bool  upgradeIfNoUI = false,
bool  informSystemd = false 
)

◆ getRecordingExtenderDbInfo()

MTV_PUBLIC DBUpdates getRecordingExtenderDbInfo ( int  version)