Make sure that DB has no broken entries created on prerelease evaluation
This commit is contained in:
parent
0a44da4e80
commit
9ab3c0cbce
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
$installedVersion = \OCP\Config::getAppValue('documents', 'installed_version');
|
$installedVersion = \OCP\Config::getAppValue('documents', 'installed_version');
|
||||||
|
|
||||||
|
$cleanup = \OC_DB::prepare('DELETE FROM `*PREFIX*documents_member` WHERE `member_id` NOT IN(SELECT `member_id` from `*PREFIX*documents_member` WHERE `last_activity`>0)');
|
||||||
|
$cleanup->execute();
|
||||||
|
|
||||||
if (version_compare($installedVersion, '0.7', '<=')) {
|
if (version_compare($installedVersion, '0.7', '<=')) {
|
||||||
\OCP\Config::setAppValue('documents', 'unstable', 'false');
|
\OCP\Config::setAppValue('documents', 'unstable', 'false');
|
||||||
$session = new \OCA\Documents\Db_Session();
|
$session = new \OCA\Documents\Db_Session();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user