mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
configDB - changed: use mediumblob for mysql database
git-svn-id: https://svn.fhem.de/fhem/trunk@6127 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
50b11436ae
commit
518d6a8432
@ -209,7 +209,13 @@ sub cfgDB_Init() {
|
||||
$fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhemstate(stateString TEXT)");
|
||||
|
||||
# create TABLE fhembinfilesave if nonexistent
|
||||
$fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhembinfilesave(filename TEXT, content BLOB)");
|
||||
if($cfgDB_dbtype eq "MYSQL") {
|
||||
$fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhembinfilesave(filename TEXT, content MEDIUMBLOB)");
|
||||
# my $spaltentyp = $fhem_dbh->do("SHOW FIELDS FROM fhembinfilesave LIKE 'content'");
|
||||
# Log3(undef,1,$spaltentyp);
|
||||
} else {
|
||||
$fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhembinfilesave(filename TEXT, content BLOB)");
|
||||
}
|
||||
|
||||
$fhem_dbh->commit();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user