diff --git a/php/src/db/sqlite/SqliteStorage.php b/php/src/db/sqlite/SqliteStorage.php index 9d52cc9..9850406 100644 --- a/php/src/db/sqlite/SqliteStorage.php +++ b/php/src/db/sqlite/SqliteStorage.php @@ -53,9 +53,9 @@ class SqliteStorage extends CapacitorStorage { } protected function _addToChannelsSql(CapacitorChannel $channel): array { - return cl::merge(parent::_addToChannelsSql($channel), [ - "suffix" => "on conflict ignore", - ]); + $sql = parent::_addToChannelsSql($channel); + $sql[0] = "insert or ignore"; + return $sql; } protected function _afterCreate(CapacitorChannel $channel): void {