MythTV
master
|
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) |
MTV_PUBLIC bool InitializeMythSchema | ( | void | ) |
command to get the the initial database layout from an empty database:
mysqldump \ –compact –skip-opt –create-options –no-tablespaces \ –ignore-table=mythconverg.schemalock mythconverg | \ sed -e '/^(SET|INS).*;$/d;/^\/*!40101.*$/d;/^\/*M!999999.*$/d;' | \ sed -e 's/utf8mb./utf8/' | \ sed -e 's/^.*[^;]$/"&"/;s/^).*;$/"&",/'
command to get the initial data:
mysqldump \ –compact –skip-opt –no-tablespaces -t mythconverg | \ sed -e '/^\/*M!999999.*$/d;s/^.*$/"&",/' -e 's#\#\\#g'
don't forget to delete host specific data
Definition at line 1254 of file dbcheck.cpp.
Referenced by doUpgradeTVDatabaseSchema(), and main().
MTV_PUBLIC bool UpgradeTVDatabaseSchema | ( | bool | upgradeAllowed = false , |
bool | upgradeIfNoUI = false , |
||
bool | informSystemd = false |
||
) |
MTV_PUBLIC DBUpdates getRecordingExtenderDbInfo | ( | int | version | ) |
Definition at line 3162 of file dbcheck.cpp.
Referenced by doUpgradeTVDatabaseSchema().