Add db flag for guests

This commit is contained in:
Victor Dubiniuk 2014-04-09 17:14:53 +03:00
parent a341ca775a
commit 61576a8374
3 changed files with 13 additions and 1 deletions

View File

@ -91,6 +91,14 @@
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>is_guest</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>1</length>
</field>
<field>
<name>status</name>
<type>integer</type>

View File

@ -29,3 +29,7 @@ if (version_compare($installedVersion, '0.7', '<=')) {
}
}
if (version_compare($installedVersion, '0.8', '<')) {
$query = \OC_DB::prepare('UPDATE `*PREFIX*documents_member` SET `is_guest`=1 WHERE `uid` LIKE \'%(guest)\' ');
$query->execute(array());
}

View File

@ -1 +1 @@
0.7.2
0.8