mirror of
https://github.com/friendica/friendica
synced 2024-11-19 10:23:41 +00:00
Test: only insert empty user
This commit is contained in:
parent
a2c652bef5
commit
81a03b137b
1 changed files with 2 additions and 2 deletions
|
@ -1070,7 +1070,7 @@ class DBStructure
|
|||
}
|
||||
}
|
||||
|
||||
if (self::existsTable('user') && DBA::exists('user', ['uid' => 0])) {
|
||||
/* if (self::existsTable('user') && DBA::exists('user', ['uid' => 0])) {
|
||||
$system = User::getSystemAccount();
|
||||
$user = [
|
||||
"username" => $system['name'],
|
||||
|
@ -1087,7 +1087,7 @@ class DBStructure
|
|||
|
||||
DBA::update('user', $user, ['uid' => 0]);
|
||||
}
|
||||
|
||||
*/
|
||||
if (self::existsTable('permissionset')) {
|
||||
if (!DBA::exists('permissionset', ['id' => 0])) {
|
||||
DBA::insert('permissionset', ['allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '']);
|
||||
|
|
Loading…
Reference in a new issue