mirror of
https://github.com/friendica/friendica
synced 2024-11-13 00:22:59 +00:00
Ensure unified order of 'verb' records
This commit is contained in:
parent
3cc3bfe531
commit
ef3dc72dca
1 changed files with 6 additions and 0 deletions
|
@ -1004,6 +1004,12 @@ class DBStructure
|
||||||
*/
|
*/
|
||||||
public static function checkInitialValues()
|
public static function checkInitialValues()
|
||||||
{
|
{
|
||||||
|
if (self::existsTable('verb') && !DBA::exists('verb', ['id' => 1])) {
|
||||||
|
foreach (Item::ACTIVITIES as $index => $activity) {
|
||||||
|
DBA::insert('verb', ['id' => $index + 1, 'name' => $activity], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (self::existsTable('contact') && !DBA::exists('contact', ['id' => 0])) {
|
if (self::existsTable('contact') && !DBA::exists('contact', ['id' => 0])) {
|
||||||
DBA::insert('contact', ['nurl' => '']);
|
DBA::insert('contact', ['nurl' => '']);
|
||||||
$lastid = DBA::lastInsertId();
|
$lastid = DBA::lastInsertId();
|
||||||
|
|
Loading…
Reference in a new issue