Some more foreign keys added

This commit is contained in:
Michael 2020-11-19 06:26:30 +00:00
parent fb568ba462
commit 3af5f6b8ee
5 changed files with 138 additions and 39 deletions

View file

@ -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,