Skip to content
Snippets Groups Projects
Commit 96222312 authored by hahn's avatar hahn
Browse files

ci server - valuestore: fix dbcreate

parent 62bf762c
Branches
No related tags found
No related merge requests found
......@@ -124,7 +124,9 @@ class valuestore {
echo $this->_bDebug ? "removing existing file $this->_dbfile ...<br>\n" : '';
unlink($this->_dbfile);
}
// after deleting the db file we nee to re instantiate
echo $this->_bDebug ? "create database as file $this->_dbfile ...<br>\n" : '';
$this->_oDB = new PDO("sqlite:" . $this->_dbfile);
$this->_makeQuery($this->_sCreate);
if (!file_exists($this->_dbfile)) {
$this->_quit(__FUNCTION__ , "ERROR: unable to create sqlite database " . $this->_dbfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment