mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
Some more foreign keys added
This commit is contained in:
parent
fb568ba462
commit
3af5f6b8ee
5 changed files with 138 additions and 39 deletions
|
@ -1054,6 +1054,14 @@ class DBStructure
|
|||
}
|
||||
}
|
||||
|
||||
if (self::existsTable('verb') && !DBA::exists('verb', ['id' => 0])) {
|
||||
DBA::insert('verb', ['name' => '']);
|
||||
$lastid = DBA::lastInsertId();
|
||||
if ($lastid != 0) {
|
||||
DBA::update('verb', ['id' => 0], ['id' => $lastid]);
|
||||
}
|
||||
}
|
||||
|
||||
if (self::existsTable('user') && !DBA::exists('user', ['uid' => 0])) {
|
||||
$user = [
|
||||
"verified" => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue