mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
include suggested changes
This commit is contained in:
parent
6ef609f4fb
commit
d74e57ef2c
18 changed files with 64 additions and 67 deletions
|
@ -61,13 +61,14 @@ class DbaDefinition
|
|||
}
|
||||
|
||||
/**
|
||||
* Get field data for the given table
|
||||
* Truncate field data for the given table
|
||||
*
|
||||
* @param string $table Name of the table to load field definitions for
|
||||
* @param array $data data fields
|
||||
*
|
||||
* @param string $table Tavle to load field definitions for
|
||||
* @param array $data data fields
|
||||
* @return array fields for the given
|
||||
*/
|
||||
public function getFieldsForTable(string $table, array $data = []): array
|
||||
public function truncateFieldsForTable(string $table, array $data): array
|
||||
{
|
||||
$definition = $this->definition;
|
||||
if (empty($definition[$table])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue