mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 23:54:35 -04:00
Add Matomo to database table
This commit is contained in:
parent
e24233bd1b
commit
26d3595ef5
@ -97,6 +97,8 @@ class Company extends BaseModel
|
|||||||
'first_month_of_year',
|
'first_month_of_year',
|
||||||
'slack_webhook_url',
|
'slack_webhook_url',
|
||||||
'google_analytics_key',
|
'google_analytics_key',
|
||||||
|
'matomo_url',
|
||||||
|
'matomo_id',
|
||||||
'client_can_register',
|
'client_can_register',
|
||||||
'enable_shop_api',
|
'enable_shop_api',
|
||||||
'invoice_task_timelog',
|
'invoice_task_timelog',
|
||||||
@ -440,7 +442,7 @@ class Company extends BaseModel
|
|||||||
return $item->id == $this->settings->language_id;
|
return $item->id == $this->settings->language_id;
|
||||||
})->first();
|
})->first();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLocale()
|
public function getLocale()
|
||||||
|
@ -149,6 +149,8 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
'slack_webhook_url' => (string) $company->slack_webhook_url,
|
'slack_webhook_url' => (string) $company->slack_webhook_url,
|
||||||
'google_analytics_url' => (string) $company->google_analytics_key, //@deprecate 1-2-2021
|
'google_analytics_url' => (string) $company->google_analytics_key, //@deprecate 1-2-2021
|
||||||
'google_analytics_key' => (string) $company->google_analytics_key,
|
'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,
|
'enabled_item_tax_rates' => (int) $company->enabled_item_tax_rates,
|
||||||
'client_can_register' => (bool) $company->client_can_register,
|
'client_can_register' => (bool) $company->client_can_register,
|
||||||
'is_large' => (bool) $company->is_large,
|
'is_large' => (bool) $company->is_large,
|
||||||
|
21
database/migrations/2022_07_12_45766_add_matomo.php
Normal file
21
database/migrations/2022_07_12_45766_add_matomo.php
Normal 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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user