mirror of
https://github.com/cosmocode/sqlite.git
synced 2025-08-03 16:22:47 +00:00
never set db version to 0. related to #80
There is no need to initially set the database version to 0, returning 0 is enough to run the appropriate migrations. This will partially fix #80. The underlying problem is probably a temporary database lock that causes an exception in getOpt(). This still needs to be addressed.
This commit is contained in:
@ -30,6 +30,8 @@ class SQLiteDB
|
||||
/** @var \helper_plugin_sqlite */
|
||||
protected $helper;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@ -452,7 +454,6 @@ class SQLiteDB
|
||||
// add the opt table - if this fails too, let the exception bubble up
|
||||
$sql = "CREATE TABLE IF NOT EXISTS opts (opt TEXT NOT NULL PRIMARY KEY, val NOT NULL DEFAULT '')";
|
||||
$this->exec($sql);
|
||||
$this->setOpt('dbversion', 0);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user