Ensure unified order of 'verb' records
This commit is contained in:
parent
3cc3bfe531
commit
ef3dc72dca
|
@ -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