mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01: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',
|
||||
'slack_webhook_url',
|
||||
'google_analytics_key',
|
||||
'matomo_url',
|
||||
'matomo_id',
|
||||
'client_can_register',
|
||||
'enable_shop_api',
|
||||
'invoice_task_timelog',
|
||||
|
@ -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,
|
||||
|
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…
Reference in New Issue
Block a user