1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Add Matomo to database table

This commit is contained in:
Lars Kusch 2022-12-07 08:39:05 +01:00
parent e24233bd1b
commit 26d3595ef5
3 changed files with 26 additions and 1 deletions

View File

@ -97,6 +97,8 @@ class Company extends BaseModel
'first_month_of_year',
'slack_webhook_url',
'google_analytics_key',
'matomo_url',
'matomo_id',
'client_can_register',
'enable_shop_api',
'invoice_task_timelog',
@ -440,7 +442,7 @@ class Company extends BaseModel
return $item->id == $this->settings->language_id;
})->first();
}
public function getLocale()

View File

@ -149,6 +149,8 @@ class CompanyTransformer extends EntityTransformer
'slack_webhook_url' => (string) $company->slack_webhook_url,
'google_analytics_url' => (string) $company->google_analytics_key, //@deprecate 1-2-2021
'google_analytics_key' => (string) $company->google_analytics_key,
'matomo_url' => (string) $company->matomo_url,
'matomo_id' => (int) $company->matomo_id,
'enabled_item_tax_rates' => (int) $company->enabled_item_tax_rates,
'client_can_register' => (bool) $company->client_can_register,
'is_large' => (bool) $company->is_large,

View File

@ -0,0 +1,21 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddIndexToPaymentHash extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('companies', function (Blueprint $table) {
$table->varchar('matomo_url');
$table->bigInteger('matomo_id');
});
}
}