mirror of
https://github.com/friendica/friendica
synced 2025-05-07 01:04:22 +02:00
Mode switch for insert
This commit is contained in:
parent
fa5acb3b21
commit
303aaa00ca
15 changed files with 56 additions and 31 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Model;
|
||||
|
||||
use Friendica\Database\Database;
|
||||
use Friendica\Database\DBA;
|
||||
|
||||
class Verb
|
||||
|
@ -44,7 +45,7 @@ class Verb
|
|||
return $verb_record['id'];
|
||||
}
|
||||
|
||||
DBA::insert('verb', ['name' => $verb], true);
|
||||
DBA::insert('verb', ['name' => $verb], Database::INSERT_IGNORE);
|
||||
|
||||
return DBA::lastInsertId();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue